mw.Target: Fix API breakage of watchlist preference check

Bug: T97838
Change-Id: I413c300ad26dd87d9d6a7c6f0032a8165ea7f2c9
This commit is contained in:
Alex Monk 2015-05-07 08:34:01 -07:00 committed by James D. Forrester
parent 9275a0ae15
commit 6c86046bd8

View file

@ -324,7 +324,7 @@ ve.init.mw.Target.onLoad = function ( response ) {
.prop( 'checked',
mw.user.options.get( 'watchdefault' ) ||
( mw.user.options.get( 'watchcreations' ) && !this.pageExists ) ||
data.watched
data.watched === ''
);
this.baseTimeStamp = data.basetimestamp;