client/js/main.js
changeset 649 2b9c120dba55
parent 648 e388117572d8
child 650 b2e22052e9d6
--- a/client/js/main.js	Thu Jan 05 19:34:53 2017 +0100
+++ b/client/js/main.js	Tue Jan 10 17:36:30 2017 +0100
@@ -151,14 +151,14 @@
             }
         });
 
-        this.colorPicker = (function() {
+        this.colorPicker = function(pickerClass) {
             var _tmpl = _this.options.templates['templates/colorpicker.html'];
-            return '<ul class="Rk-Edit-ColorPicker">' + Rkns.pickerColors.map(function(c) {
+            return '<ul class="Rk-Edit-ColorPicker '+pickerClass+'">' + Rkns.pickerColors.map(function(c) {
                 return _tmpl({
                     c: c
                 });
             }).join("") + '</ul>';
-        })();
+        };
 
         if (this.options.show_editor) {
             this.renderer = new Rkns.Renderer.Scene(this);