problem with background caused by JS errors
authorMarcin Koziej <marcinkoziej@nowoczesnapolska.org.pl>
Mon, 9 Sep 2013 14:23:31 +0000 (16:23 +0200)
committerMarcin Koziej <marcinkoziej@nowoczesnapolska.org.pl>
Mon, 9 Sep 2013 14:23:31 +0000 (16:23 +0200)
redakcja/static/js/lib/jquery/jquery.imgareaselect.js
redakcja/static/js/wiki_img/wikiapi.js

index d981fdc..cb31eef 100644 (file)
@@ -39,13 +39,13 @@ $.imgAreaSelect = function (img, options) {
 
         left, top,
 
 
         left, top,
 
-        imgOfs,
+        imgOfs = { left: 0, top: 0 },
 
         imgWidth, imgHeight,
 
         $parent,
 
 
         imgWidth, imgHeight,
 
         $parent,
 
-        parOfs,
+        parOfs = { left: 0, top: 0 },
 
         zIndex = 0,
 
 
         zIndex = 0,
 
index 219f53f..81cd316 100644 (file)
             $sem.append($div);
             $root.append($sem);
         });
             $sem.append($div);
             $root.append($sem);
         });
-        self.setText(XML(serializer.serializeToString(doc)).toXMLString());
+        self.setText(serializer.serializeToString(doc));
     }
 
 
     }