SubGroupListWidget: use timestamp from model, not from listWidget

This ensures that the fallback timestamp is used if the list is
still empty. Not doing this causes the wikis in the cross-wiki bundle
to appear in the wrong order. Also, it makes more sense to use the
model as the source of truth regardless.

Bug: T138115
Change-Id: Icbfdc7e7c7f67179e50f0f692aef1a54568265e6
This commit is contained in:
Roan Kattouw 2016-06-21 14:23:24 +01:00 committed by Sbisson
parent 5a5e1970c5
commit 92d1d600ae

View file

@ -206,7 +206,7 @@
* @return {number} Timestamp
*/
mw.echo.ui.SubGroupListWidget.prototype.getTimestamp = function () {
return this.listWidget.getTimestamp();
return this.model.getTimestamp();
};
/**