Merge "Rename BlockRestriction -> BlockRestrictionStore and wire it up as a service"
[lhc/web/wiklou.git] / resources / src / mediawiki.rcfilters / dm / ChangesListViewModel.js
index 70677b9..d5357e0 100644 (file)
@@ -117,6 +117,7 @@ ChangesListViewModel.prototype.extractNextFrom = function ( $fieldset ) {
        var data = $fieldset.find( '.rclistfrom > a, .wlinfo' ).data( 'params' );
        if ( data && data.from ) {
                this.nextFrom = data.from;
+               this.nextFromFormatted = data.fromFormatted;
        }
 };
 
@@ -127,6 +128,13 @@ ChangesListViewModel.prototype.getNextFrom = function () {
        return this.nextFrom;
 };
 
+/**
+ * @return {string} The 'from' parameter formatted per the user's datetime format preference
+ */
+ChangesListViewModel.prototype.getNextFromFormatted = function () {
+       return this.nextFromFormatted;
+};
+
 /**
  * Toggle the 'live update' feature on/off
  *