From: Marcin Koziej Date: Mon, 9 Sep 2013 14:23:31 +0000 (+0200) Subject: problem with background caused by JS errors X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/b61e4fa32bc8fb7c64910520eb9008e73ac47edf?ds=sidebyside;hp=1be132dc9f105e745e979ec6eaeb8d7bc86089f1 problem with background caused by JS errors --- diff --git a/redakcja/static/js/lib/jquery/jquery.imgareaselect.js b/redakcja/static/js/lib/jquery/jquery.imgareaselect.js index d981fdc5..cb31eef9 100644 --- a/redakcja/static/js/lib/jquery/jquery.imgareaselect.js +++ b/redakcja/static/js/lib/jquery/jquery.imgareaselect.js @@ -39,13 +39,13 @@ $.imgAreaSelect = function (img, options) { left, top, - imgOfs, + imgOfs = { left: 0, top: 0 }, imgWidth, imgHeight, $parent, - parOfs, + parOfs = { left: 0, top: 0 }, zIndex = 0, diff --git a/redakcja/static/js/wiki_img/wikiapi.js b/redakcja/static/js/wiki_img/wikiapi.js index 219f53ff..81cd3162 100644 --- a/redakcja/static/js/wiki_img/wikiapi.js +++ b/redakcja/static/js/wiki_img/wikiapi.js @@ -373,7 +373,7 @@ $sem.append($div); $root.append($sem); }); - self.setText(XML(serializer.serializeToString(doc)).toXMLString()); + self.setText(serializer.serializeToString(doc)); }