Merge branch 'master' of git@stigma:platforma
[redakcja.git] / project / templates / explorer / panels / xmleditor.html
index 9186f04..7651ffb 100644 (file)
@@ -45,7 +45,7 @@ panel_hooks = {
                             var pos = texteditor.cursorPosition();
                             texteditor.selectLines(pos.line, pos.character + tag.length + 2);
                         }
-                        $(document).trigger('panel:contentChanged', panel);
+                        $(document).trigger('panel:contentChanged', self);
                     }
                     if ($(this).attr('p:key')) {
                         keys[$(this).attr('p:key')] = handler;
@@ -81,8 +81,18 @@ panel_hooks = {
                this.texteditor = null;
        },
 
-       saveInfo: function(hn, saveInfo) {
-               var myInfo = {content: this.texteditor.getCode(), dataType: 'xml'};
+
+       refresh: function() {
+               return false;
+       },
+
+       saveInfo: function(saveInfo) {
+               var myInfo = {
+                       url: "{% url file_xml fpath %}", 
+                       postData: {
+                               content: this.texteditor.getCode()
+                       } 
+               };
                $.extend(saveInfo, myInfo);
        }               
 };