Merge "(bug 43040) All edits were being marked as minor"

This commit is contained in:
jenkins-bot 2012-12-13 04:46:25 +00:00 committed by Gerrit Code Review
commit cf5f2ae0f5

View file

@ -382,8 +382,8 @@ ve.init.mw.Target.prototype.save = function ( dom, options ) {
'html': $( dom ).html(),
'token': this.editToken,
'summary': options.summary,
'minor': options.minor,
'watch': options.watch
'minor': Number( options.minor ),
'watch': Number( options.watch )
},
'dataType': 'json',
'type': 'POST',
@ -454,8 +454,8 @@ ve.init.mw.Target.prototype.submit = function ( wikitext, options ) {
'wpEdittime': this.startTimeStamp,
'wpTextbox1': wikitext,
'wpSummary': options.summary,
'wpWatchthis': options.watch,
'wpMinoredit': options.minor,
'wpWatchthis': Number( options.watch ),
'wpMinoredit': Number( options.minor ),
'wpEditToken': this.editToken,
'wpSave': 1
};