LT-67 Adding form for DIMSE servers

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-08-04 16:49:51 +02:00
1 parent 3873ac6b3b
commit 16a302e979
11 files changed
+145 -50

No files matched your search

+10 -7
View File
@@ -1,14 +1,17 @@
Template.registerHelper("instance", function() {
Template.registerHelper('instance', function() {
return Template.instance();
});
Template.registerHelper("extend", function(object, extendedProperties){
Template.registerHelper('extend', function() {
const result = {};
for (let i=0; i<arguments.length; i++) {
let current = arguments[i];
if (typeof current !== "object") continue;
current instanceof Spacebars.kw && (current = current.hash);
const kw = arguments.pop();
_.each(arguments, function(current) {
if (typeof current !== 'object') {
return;
}
_.extend(result, current);
}
});
_.extend(result, kw.hash);
return result;
});