X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/52c41c20759ed4920d5a1f4008e7e0bfd9fa70f9..fd9164545d4a1cf2d508b4125a45643a0b8375fa:/src/redakcja/static/js/wiki/view_properties.js diff --git a/src/redakcja/static/js/wiki/view_properties.js b/src/redakcja/static/js/wiki/view_properties.js index 6ae6e571..be027e02 100644 --- a/src/redakcja/static/js/wiki/view_properties.js +++ b/src/redakcja/static/js/wiki/view_properties.js @@ -1,8 +1,5 @@ (function($){ - let w = function() {}; - w = console.log; - const elementDefs = { "ilustr": { "attributes": [ @@ -89,17 +86,11 @@ html2text({ element: self.$edited[0], success: function(xml) { - w(222) let $xmlelem = $($.parseXML(xml)); - w(333, $xmlelem) - w($input.data('property'), $input.val()); $xmlelem.contents().attr($input.data('property'), inputval); - w(444, $xmlelem) let newxml = (new XMLSerializer()).serializeToString($xmlelem[0]); - w(555, newxml) xml2html({ xml: newxml, - base: self.doc.getBase(), success: function(html) { let htmlElem = $(html); self.$edited.replaceWith(htmlElem);