X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ffc2e047ca6712af8da3e13891b7ea16f184264a..bdc77acac1b21f2387620b305a46976e8584ddcc:/redakcja/static/js/wiki_img/view_editor_objects.js diff --git a/redakcja/static/js/wiki_img/view_editor_objects.js b/redakcja/static/js/wiki_img/view_editor_objects.js index 97d4ba25..5cf014ff 100644 --- a/redakcja/static/js/wiki_img/view_editor_objects.js +++ b/redakcja/static/js/wiki_img/view_editor_objects.js @@ -7,8 +7,8 @@ options.callback = function(){ var self = this; - self.$tag_name = $('#objects-editor #tag-name'); - self.$objects_list = $('#objects-editor #objects-list'); + self.$tag_name = $('#objects-editor .tag-name'); + self.$objects_list = $('#objects-editor .objects-list'); self.x1 = null; self.x2 = null; @@ -17,7 +17,7 @@ if (!CurrentDocument.readonly) { self.ias = $('#objects-editor img.area-selectable').imgAreaSelect({ handles: true, onSelectEnd: self._fillCoords(self), instance: true }); - $('#objects-editor #add').click(self._addObject(self)); + $('#objects-editor .add').click(self._addObject(self)); $('.delete', self.$objects_list).live('click', function() { $(this).prev().trigger('click');