X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ad481d9335cb91f56adfffda3999284f37d37942..3669f00df3636d92c7de6fb0c7ebeac89150e5fe:/project/static/js/views/html.js diff --git a/project/static/js/views/html.js b/project/static/js/views/html.js index 058b0192..a7f02dd4 100644 --- a/project/static/js/views/html.js +++ b/project/static/js/views/html.js @@ -31,9 +31,15 @@ var HTMLView = View.extend({ this.freeze('Ładowanie...'); } else if (value == 'saving') { this.freeze('Zapisywanie...'); + } else if (value == 'error') { + this.freeze(this.model.get('error')); } }, + reload: function() { + this.model.load(true); + }, + dispose: function() { this.model.removeObserver(this); this._super();