Server-side refactor.
[redakcja.git] / project / templates / explorer / panels / xmleditor.html
index 9186f04..fe1870e 100644 (file)
@@ -81,8 +81,19 @@ panel_hooks = {
                this.texteditor = null;
        },
 
                this.texteditor = null;
        },
 
+
+       refresh: function(hn) {
+               // TODO
+               return true;
+       },
+
        saveInfo: function(hn, saveInfo) {
        saveInfo: function(hn, saveInfo) {
-               var myInfo = {content: this.texteditor.getCode(), dataType: 'xml'};
+               var myInfo = {
+                       url: "{% url file_xml fpath %}", 
+                       postData: {
+                               content: this.texteditor.getCode()
+                       } 
+               };
                $.extend(saveInfo, myInfo);
        }               
 };
                $.extend(saveInfo, myInfo);
        }               
 };