- old_callback.call(this);
- }
-
- $.wiki.Perspective.call(this, options);
- };
-
- HistoryPerspective.prototype = new $.wiki.Perspective();
-
- HistoryPerspective.prototype.freezeState = function(){
- // must
- };
-
- HistoryPerspective.prototype.onEnter = function(success, failure){
- $.wiki.Perspective.prototype.onEnter.call(this);
- this.startFetching();
- success && success();
- };
-
- HistoryPerspective.prototype.startFetching = function() {
- $('#history-view .message-box').html('Wczytywanie historii…').show();
- $('#changes-list').html('');
- this.finished = false;
- this.before = '';
- this.triggerFetch();
- };
- HistoryPerspective.prototype.stopFetching = function() {
- self.finished = true;
- $('#history-view .message-box').hide()
- };
-
-
- HistoryPerspective.prototype.triggerFetch = function() {
- var self = this;
- self.fetching = true;
-
- function _finalize() {
- self.fetching = false;