mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Add calls to 'breakpoint' method in ListButtonTool
This commit is contained in:
parent
4e39b41727
commit
37d3b7ceac
|
@ -270,11 +270,13 @@ es.ListButtonTool.prototype.unlist = function( nodes ) {
|
|||
};
|
||||
|
||||
es.ListButtonTool.prototype.onClick = function() {
|
||||
this.toolbar.surfaceView.model.breakpoint();
|
||||
if ( !this.$.hasClass( 'es-toolbarButtonTool-down' ) ) {
|
||||
this.list( this.nodes, this.name );
|
||||
} else {
|
||||
this.unlist( this.nodes );
|
||||
}
|
||||
this.toolbar.surfaceView.model.breakpoint();
|
||||
};
|
||||
|
||||
es.ListButtonTool.prototype.updateState = function( annotations, nodes ) {
|
||||
|
|
|
@ -127,7 +127,9 @@ es.SurfaceView = function( $container, model ) {
|
|||
},
|
||||
'paste': function() {
|
||||
setTimeout( function() {
|
||||
_this.model.breakpoint();
|
||||
_this.insertFromInput();
|
||||
_this.model.breakpoint();
|
||||
}, 0 );
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue