X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ad481d9335cb91f56adfffda3999284f37d37942..320fd24b68185b73f1180c425271e037331baa46:/project/static/js/views/xml.js?ds=inline diff --git a/project/static/js/views/xml.js b/project/static/js/views/xml.js index a1b6ca63..8af3c4d4 100644 --- a/project/static/js/views/xml.js +++ b/project/static/js/views/xml.js @@ -58,7 +58,6 @@ var XMLView = View.extend({ }, modelDataChanged: function(property, value) { - console.log('modelDataChanged'); if (this.editor.getCode() != value) { this.editor.setCode(value); } @@ -66,13 +65,13 @@ var XMLView = 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...'); } },