Refactor fileObject

This commit is contained in:
yflory
2017-04-12 18:54:22 +02:00
parent 5212539a16
commit c1e0316d43
4 changed files with 877 additions and 35 deletions

View File

@@ -506,8 +506,9 @@ load pinpad dynamically only after you know that it will be needed */
});
return templates;
};
var addTemplate = common.addTemplate = function (href) {
getStore().addTemplate(href);
var addTemplate = common.addTemplate = function (data) {
getStore().pushData(data);
getStore().addPad(data.href, ['template']);
};
var isTemplate = common.isTemplate = function (href) {