Another set of missing semicolons
[fnpeditor.git] / modules / documentToolbar / documentToolbar.js
index a2a1567..a6dd0be 100644 (file)
@@ -13,7 +13,7 @@ return function(sandbox) {
                 e.stopPropagation();\r
                 var btn = $(e.currentTarget);\r
                 if(btn.attr('data-btn-type') === 'toggle') {\r
-                    btn.toggleClass('active')\r
+                    btn.toggleClass('active');\r
                     var event;\r
                     var btnId = btn.attr('data-btn');\r
                     if(btnId === 'grid')\r
@@ -33,22 +33,17 @@ return function(sandbox) {
                             wlxmlTag = split[0];\r
                             wlxmlClass = split[1];\r
                         }\r
-                        if(window.getSelection().isCollapsed) {\r
-                            //view.insertNewNode(wlxmlTag, wlxmlClass);\r
-                        }\r
-                        else {\r
-                            //this.wrapWithNodeRequest(wlxmlTag, wlxmlClass);\r
-                        }\r
                         sandbox.publish('newNodeRequested', wlxmlTag, wlxmlClass);\r
+                    } else {\r
+                        sandbox.publish('command', btn.attr('data-btn'), btn.attr('data-meta'));\r
                     }\r
-                    //sandbox.publish('command', btn.attr('data-btn'), btn.attr('data-meta'));\r
                 }\r
             });\r
         },\r
         getOption: function(option) {\r
             return this.node.find('.rng-module-documentToolbar-toolbarOption[data-option=' + option +']').val();\r
         }\r
-    }\r
+    };\r
     \r
     view.setup();\r
 \r
@@ -56,7 +51,7 @@ return function(sandbox) {
         start: function() { sandbox.publish('ready'); },\r
         getView: function() { return view.node; },\r
         getOption: function(option) { return view.getOption(option); }\r
-    }\r
-}\r
+    };\r
+};\r
 \r
 });
\ No newline at end of file