Update VE core submodule to master (4366f20)

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
3412b41 Localisation updates from https://translatewiki.net.
0c5238c Add system to dm.Surface for staging changes
8f0077c Only hide popups on selection change
4575f82 Fix initial selection when focusing in Firefox
debfd4e Document focus/blur cleanup

Change-Id: Ic66c96a4f64ad82a01a84535ca8cd19332065b37
This commit is contained in:
Roan Kattouw 2014-04-16 15:56:43 -07:00
parent 9d1b7432fd
commit 2262073c9c
2 changed files with 2 additions and 2 deletions

2
lib/ve

@ -1 +1 @@
Subproject commit 69db959ff74fdf8ba89eae208b00284642f2d184
Subproject commit 4366f203354959e5df3c4e3831ee4d11b14144bb

View file

@ -756,7 +756,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 );