wip: toggle tags button
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 22 Apr 2013 14:12:42 +0000 (16:12 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 22 Apr 2013 14:12:42 +0000 (16:12 +0200)
modules/visualEditor.js

index 39859a8..5e26978 100644 (file)
@@ -179,6 +179,9 @@ rng.modules.visualEditor = function(sandbox) {
         toggleGrid: function(toggle) {\r
             this.node.find('[wlxml-tag]').toggleClass('rng-hover', toggle);\r
             this.gridToggled = toggle;\r
         toggleGrid: function(toggle) {\r
             this.node.find('[wlxml-tag]').toggleClass('rng-hover', toggle);\r
             this.gridToggled = toggle;\r
+        },\r
+        toggleTags: function(toggle) {\r
+        \r
         }\r
     };\r
     \r
         }\r
     };\r
     \r
@@ -317,6 +320,8 @@ rng.modules.visualEditor = function(sandbox) {
         toolbarButtonToggled: function(btn, toggle) {\r
             if(btn === 'grid')\r
                 view.toggleGrid(toggle);\r
         toolbarButtonToggled: function(btn, toggle) {\r
             if(btn === 'grid')\r
                 view.toggleGrid(toggle);\r
+            if(btn === 'tags')\r
+                view.toggleTags(toggle);\r
         },\r
         nodeHovered: function(node) {\r
             view.highlightNode(node);\r
         },\r
         nodeHovered: function(node) {\r
             view.highlightNode(node);\r