mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Shortened the names of operations
This commit is contained in:
parent
c0a02cd6c3
commit
19c7e874d6
|
@ -492,7 +492,7 @@ $(document).ready( function() {
|
|||
while ( --i >= end ) {
|
||||
action = surfaceModel.history[i];
|
||||
if ( action instanceof es.Range ) {
|
||||
events += '<div>select( ' + action.from + ', ' + action.to + ' )</div>';
|
||||
events += '<div>sel( ' + action.from + ', ' + action.to + ' )</div>';
|
||||
} else {
|
||||
ops = action.getOperations().slice( 0 );
|
||||
for ( var j = 0; j < ops.length; j++ ) {
|
||||
|
@ -506,7 +506,7 @@ $(document).ready( function() {
|
|||
if ( typeof data !== 'string' && typeof data !== 'number' ) {
|
||||
data = '-';
|
||||
}
|
||||
ops[j] = ops[j].type + '( ' + data + ' )';
|
||||
ops[j] = ops[j].type.substr( 0, 3 ) + '( ' + data + ' )';
|
||||
}
|
||||
events += '<div>' + ops.join( ', ' ) + '</div>';
|
||||
}
|
||||
|
@ -540,6 +540,7 @@ $(document).ready( function() {
|
|||
} );
|
||||
} );
|
||||
|
||||
|
||||
surfaceModel.on( 'transact', function() {
|
||||
if ( currentMode ) {
|
||||
currentMode.update.call( currentMode );
|
||||
|
|
Loading…
Reference in a new issue