X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0a8fdf777d7f183cb83b3db47c23c12e7cfc6c45..0249ff0d913dfaef2a6f5e8518e5736545a23c28:/project/templates/explorer/panels/xmleditor.html diff --git a/project/templates/explorer/panels/xmleditor.html b/project/templates/explorer/panels/xmleditor.html index 9186f04a..fe1870ed 100644 --- a/project/templates/explorer/panels/xmleditor.html +++ b/project/templates/explorer/panels/xmleditor.html @@ -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); } };