Usunięcie niepotrzebnych console.log (teraz śledzimy tylko stany modeli) i dodanie...
[redakcja.git] / project / static / js / views / xml.js
index a1b6ca6..8af3c4d 100644 (file)
@@ -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...');
     }
   },