LT-67 Adding form for DIMSE servers
This commit is contained in:
1 parent
3873ac6b3b
commit
16a302e979
11 files changed
+145
-50
No files matched your search
@@ -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;
|
||||
});
|
||||
Reference in new issue
Block a user