From b61e4fa32bc8fb7c64910520eb9008e73ac47edf Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Mon, 9 Sep 2013 16:23:31 +0200 Subject: [PATCH] problem with background caused by JS errors --- redakcja/static/js/lib/jquery/jquery.imgareaselect.js | 4 ++-- redakcja/static/js/wiki_img/wikiapi.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)); } -- 2.20.1