client/js/main.js
changeset 647 eaaa1efce396
parent 622 02e3c464223f
child 648 e388117572d8
--- a/client/js/main.js	Tue Oct 04 16:40:25 2016 +0200
+++ b/client/js/main.js	Thu Jan 05 16:26:07 2017 +0100
@@ -101,7 +101,7 @@
             templates: _.defaults(_opts.templates, renkanJST) || renkanJST,
             node_editor_templates: _.defaults(_opts.node_editor_templates, Rkns.defaults.node_editor_templates)
         });
-        this.template = renkanJST['templates/main.html'];
+        this.template = this.options.templates['templates/main.html'];
 
         var types_templates = {};
         _.each(this.options.node_editor_templates, function(value, key) {
@@ -152,7 +152,7 @@
         });
 
         this.colorPicker = (function() {
-            var _tmpl = renkanJST['templates/colorpicker.html'];
+            var _tmpl = _this.options.templates['templates/colorpicker.html'];
             return '<ul class="Rk-Edit-ColorPicker">' + Rkns.pickerColors.map(function(c) {
                 return _tmpl({
                     c: c
@@ -167,7 +167,7 @@
         if (!this.options.search.length) {
             this.$.find(".Rk-Web-Search-Form").detach();
         } else {
-            var _tmpl = renkanJST['templates/search.html'],
+            var _tmpl = _this.options.templates['templates/search.html'],
                 _select = this.$.find(".Rk-Search-List"),
                 _input = this.$.find(".Rk-Web-Search-Input"),
                 _form = this.$.find(".Rk-Web-Search-Form");