mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Update VE core submodule for cherry-picks to make math inspector work
Use new dm.Surface method for checking undo history state (hasPastState -> hasBeenModified). New changes: 38776df [BREAKING CHANGE] Refactor history state methods to better suit uses 0c5238c Add system to dm.Surface for staging changes 8f0077c Only hide popups on selection change 1ff6c8d Create ve#contains 92be9e2 Prevent pasteTarget selection while already selected b3e5759 Make ve.dm.Surface#breakpoint not crash Change-Id: I5437e837f0b66a3094a7c1c43c91fcdd17b10783
This commit is contained in:
parent
0652ad2a21
commit
98835665dc
2
lib/ve
2
lib/ve
|
@ -1 +1 @@
|
|||
Subproject commit 74353d93e9a5234aff63288028670e5dc38c72a3
|
||||
Subproject commit b3e5759654594dfcf8ee033df3f3fcb37fc3ecda
|
|
@ -748,7 +748,7 @@ ve.init.mw.ViewPageTarget.prototype.checkForWikitextWarning = function () {
|
|||
* Re-evaluate whether the toolbar save button should be disabled or not.
|
||||
*/
|
||||
ve.init.mw.ViewPageTarget.prototype.updateToolbarSaveButtonState = function () {
|
||||
this.edited = this.surface.getModel().hasPastState();
|
||||
this.edited = this.surface.getModel().hasBeenModified();
|
||||
// Disable the save button if we have no history or if the sanity check is not finished
|
||||
this.toolbarSaveButton.setDisabled( ( !this.edited && !this.restoring ) || !this.sanityCheckFinished );
|
||||
this.toolbarSaveButton.$element.toggleClass( 've-init-mw-viewPageTarget-waiting', !this.sanityCheckFinished );
|
||||
|
|
Loading…
Reference in a new issue