diff --git a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js index c241252d18..628d1a3d8b 100644 --- a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js @@ -153,10 +153,10 @@ ve.init.mw.ViewPageTarget.compatibility = { }; ve.init.mw.ViewPageTarget.static.toolbarTools = [ - { 'name': 'history', 'items' : ['undo', 'redo'] }, - { 'name': 'textStyle', 'items' : ['mwFormat'] }, - { 'name': 'textStyle', 'items' : ['bold', 'italic', 'mwLink', 'clear'] }, - { 'name': 'list', 'items' : ['number', 'bullet', 'outdent', 'indent'] } + { 'items': ['undo', 'redo'] }, + { 'items': ['mwFormat'] }, + { 'items': ['bold', 'italic', 'mwLink', 'clear'] }, + { 'items': ['number', 'bullet', 'outdent', 'indent'] } ]; ve.init.mw.ViewPageTarget.static.surfaceCommands = [ diff --git a/modules/ve/init/ve.init.Target.js b/modules/ve/init/ve.init.Target.js index cb96eb9e27..166dab07d5 100644 --- a/modules/ve/init/ve.init.Target.js +++ b/modules/ve/init/ve.init.Target.js @@ -30,10 +30,10 @@ ve.mixinClass( ve.init.Target, ve.EventEmitter ); /* Static Properties */ ve.init.Target.static.toolbarTools = [ - { 'name': 'history', 'items' : ['undo', 'redo'] }, - { 'name': 'textStyle', 'items' : ['format'] }, - { 'name': 'textStyle', 'items' : ['bold', 'italic', 'link', 'clear'] }, - { 'name': 'list', 'items' : ['number', 'bullet', 'outdent', 'indent'] } + { 'items': ['undo', 'redo'] }, + { 'items': ['format'] }, + { 'items': ['bold', 'italic', 'link', 'clear'] }, + { 'items': ['number', 'bullet', 'outdent', 'indent'] } ]; ve.init.Target.static.surfaceCommands = [ diff --git a/modules/ve/ui/ve.ui.Toolbar.js b/modules/ve/ui/ve.ui.Toolbar.js index f4b802e086..c5ea9510ed 100644 --- a/modules/ve/ui/ve.ui.Toolbar.js +++ b/modules/ve/ui/ve.ui.Toolbar.js @@ -165,8 +165,7 @@ ve.ui.Toolbar.prototype.addTools = function ( tools ) { group = tools[i]; // Create group $group = this.$$( '
' ) - .on( 'mousedown', false ) - .addClass( 've-ui-toolbar-group-' + group.name ); + .on( 'mousedown', false ); if ( group.label ) { $group.append( this.$$( '' ).html( group.label )