X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/654e7cf77f7241bfc866a4879829367d39179577..d8e0011bca1bdc8bcfd10ce75a33372bfad0941d:/project/templates/explorer/panels/xmleditor.html?ds=sidebyside diff --git a/project/templates/explorer/panels/xmleditor.html b/project/templates/explorer/panels/xmleditor.html index 9186f04a..2803b6a1 100644 --- a/project/templates/explorer/panels/xmleditor.html +++ b/project/templates/explorer/panels/xmleditor.html @@ -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,19 @@ panel_hooks = { this.texteditor = null; }, + + refresh: function(hn) { + // TODO + return true; + }, + 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); } };