Merge "Cleanup on save dialog cruft & fix updateWatchLink"

This commit is contained in:
jenkins-bot 2013-10-16 23:17:22 +00:00 committed by Gerrit Code Review
commit 47cccb4feb

View file

@ -42,10 +42,6 @@ ve.init.mw.ViewPageTarget = function VeInitMwViewPageTarget() {
this.toolbarHelpButton = null;
this.toolbarFeedbackButton = null;
this.toolbarMetaButton = null;
this.$saveDialog = $( '<div>' )
.addClass( 've-init-mw-viewPageTarget-saveDialog' );
this.onBeforeUnloadFallback = null;
this.onBeforeUnloadHandler = null;
this.active = false;
@ -310,7 +306,8 @@ ve.init.mw.ViewPageTarget.prototype.onSave = function ( html, newid ) {
// Just checking for mw.page.watch is not enough because in Firefox
// there is Object.prototype.watch...
if ( mw.page.watch && mw.page.watch.updateWatchLink ) {
var watchChecked = this.$saveDialog
var watchChecked = this.saveDialog.$saveOptions
.find( '.ve-ui-mwSaveDialog-checkboxes' )
.find( '#wpWatchthis' )
.prop( 'checked' );
mw.page.watch.updateWatchLink(