X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ad481d9335cb91f56adfffda3999284f37d37942..ca6c176908d9de318600355c92860ea489b4b3a1:/project/static/js/views/html.js?ds=sidebyside diff --git a/project/static/js/views/html.js b/project/static/js/views/html.js index 058b0192..2e5f7cf0 100644 --- a/project/static/js/views/html.js +++ b/project/static/js/views/html.js @@ -24,13 +24,15 @@ var HTMLView = View.extend({ modelStateChanged: function(property, value) { if (value == 'synced' || value == 'dirty') { - this.unfreeze(); + this.parent.unfreeze(); } else if (value == 'unsynced') { - this.freeze('Niezsynchronizowany...'); + this.parent.freeze('Niezsynchronizowany...'); } else if (value == 'loading') { - this.freeze('Ładowanie...'); + this.parent.freeze('Ładowanie...'); } else if (value == 'saving') { - this.freeze('Zapisywanie...'); + this.parent.freeze('Zapisywanie...'); + } else if (value == 'error') { + this.parent.freeze(this.model.get('error')); } },