Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js |
— | — | @@ -132,17 +132,6 @@ |
133 | 133 | labelMsg: 'edittoolbar-tool-heading', |
134 | 134 | type: 'select', |
135 | 135 | list: { |
136 | | - 'heading-1' : { |
137 | | - labelMsg: 'edittoolbar-tool-heading-1', |
138 | | - action: { |
139 | | - type: 'encapsulate', |
140 | | - options: { |
141 | | - pre: "=", |
142 | | - periMsg: 'edittoolbar-tool-heading-example', |
143 | | - post: "=" |
144 | | - } |
145 | | - } |
146 | | - }, |
147 | 136 | 'heading-2' : { |
148 | 137 | labelMsg: 'edittoolbar-tool-heading-2', |
149 | 138 | action: { |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -94,7 +94,6 @@ |
95 | 95 | var useTool = function() { |
96 | 96 | var tool = $(this).data( 'tool' ); |
97 | 97 | if ( 'type' in tool ) { |
98 | | - console.log( tool.type ); |
99 | 98 | switch ( tool.type ) { |
100 | 99 | case 'button': |
101 | 100 | case 'link': |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -612,7 +612,6 @@ |
613 | 613 | var useTool = function() { |
614 | 614 | var tool = $(this).data( 'tool' ); |
615 | 615 | if ( 'type' in tool ) { |
616 | | - console.log( tool.type ); |
617 | 616 | switch ( tool.type ) { |
618 | 617 | case 'button': |
619 | 618 | case 'link': |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | return $(this).data('context',context);} |
46 | 46 | return $(this);} |
47 | 47 | context={'$textarea':$(this),'modules':{},'data':{}};$(this).wrap($('<div></div>').addClass('wikiEditor-ui')).wrap($('<div></div>').addClass('wikiEditor-ui-bottom')).wrap($('<div></div>').addClass('wikiEditor-ui-text'));context.$ui=$(this).parent().parent().parent();context.$ui.prepend($('<div></div>').addClass('wikiEditor-ui-top'));context.modules.toolbar={performAction:function(action){switch(action.type){case'encapsulate':var parts={'pre':'','peri':'','post':''};for(part in parts){if(part+'Msg'in action.options){parts[part]=gM(action.options[part+'Msg'],(action.options[part]||null));}else{parts[part]=(action.options[part]||'')}} |
48 | | -context.$textarea.encapsulateSelection(parts.pre,parts.peri,parts.post);break;default:break;}},addSection:function($section,section,sectionId){var useTool=function(){var tool=$(this).data('tool');if('type'in tool){console.log(tool.type);switch(tool.type){case'button':case'link':if('action'in tool){context.modules.toolbar.performAction(tool.action);} |
| 48 | +context.$textarea.encapsulateSelection(parts.pre,parts.peri,parts.post);break;default:break;}},addSection:function($section,section,sectionId){var useTool=function(){var tool=$(this).data('tool');if('type'in tool){switch(tool.type){case'button':case'link':if('action'in tool){context.modules.toolbar.performAction(tool.action);} |
49 | 49 | break;case'select':if('list'in tool&&$(this).val()in tool.list){context.modules.toolbar.performAction(tool.list[$(this).val()].action);} |
50 | 50 | $(this).find(":selected").attr('selected',false);$(this).find(":first").attr('selected',true);break;}} |
51 | 51 | return false;} |