Remove unused toolbar group name.

Can't see why we'd need to style toolbar groups differently.

Change-Id: I0646b8cf37ab19e34a8ed2eb8558773365403610
This commit is contained in:
Ed Sanders 2013-05-24 17:17:07 +02:00 committed by Catrope
parent 2e76271b4e
commit 026af0d6c0
3 changed files with 9 additions and 10 deletions

View file

@ -153,10 +153,10 @@ ve.init.mw.ViewPageTarget.compatibility = {
}; };
ve.init.mw.ViewPageTarget.static.toolbarTools = [ ve.init.mw.ViewPageTarget.static.toolbarTools = [
{ 'name': 'history', 'items' : ['undo', 'redo'] }, { 'items': ['undo', 'redo'] },
{ 'name': 'textStyle', 'items' : ['mwFormat'] }, { 'items': ['mwFormat'] },
{ 'name': 'textStyle', 'items' : ['bold', 'italic', 'mwLink', 'clear'] }, { 'items': ['bold', 'italic', 'mwLink', 'clear'] },
{ 'name': 'list', 'items' : ['number', 'bullet', 'outdent', 'indent'] } { 'items': ['number', 'bullet', 'outdent', 'indent'] }
]; ];
ve.init.mw.ViewPageTarget.static.surfaceCommands = [ ve.init.mw.ViewPageTarget.static.surfaceCommands = [

View file

@ -30,10 +30,10 @@ ve.mixinClass( ve.init.Target, ve.EventEmitter );
/* Static Properties */ /* Static Properties */
ve.init.Target.static.toolbarTools = [ ve.init.Target.static.toolbarTools = [
{ 'name': 'history', 'items' : ['undo', 'redo'] }, { 'items': ['undo', 'redo'] },
{ 'name': 'textStyle', 'items' : ['format'] }, { 'items': ['format'] },
{ 'name': 'textStyle', 'items' : ['bold', 'italic', 'link', 'clear'] }, { 'items': ['bold', 'italic', 'link', 'clear'] },
{ 'name': 'list', 'items' : ['number', 'bullet', 'outdent', 'indent'] } { 'items': ['number', 'bullet', 'outdent', 'indent'] }
]; ];
ve.init.Target.static.surfaceCommands = [ ve.init.Target.static.surfaceCommands = [

View file

@ -165,8 +165,7 @@ ve.ui.Toolbar.prototype.addTools = function ( tools ) {
group = tools[i]; group = tools[i];
// Create group // Create group
$group = this.$$( '<div class="ve-ui-toolbar-group"></div>' ) $group = this.$$( '<div class="ve-ui-toolbar-group"></div>' )
.on( 'mousedown', false ) .on( 'mousedown', false );
.addClass( 've-ui-toolbar-group-' + group.name );
if ( group.label ) { if ( group.label ) {
$group.append( $group.append(
this.$$( '<div class="ve-ui-toolbar-label"></div>' ).html( group.label ) this.$$( '<div class="ve-ui-toolbar-label"></div>' ).html( group.label )