X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/07689901a9bf30daeccf8a1ceb7193fe771eb3ac..1133074d683709532c7af9532ef3aa6b9a3be4c3:/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 9e6a3cb8..bd0af094 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'); @@ -68,7 +68,7 @@ if (x1 !== null) $e.data('coords', [x1, y1, x2, y2]); this.$objects_list.append($e); - this.$objects_list.append('(x)'); + this.$objects_list.append('(x) '); } @@ -108,7 +108,7 @@ var self = this; this.$objects_list.children().remove(); - $.each(this.doc.getImageItems('obiekt'), function(i, e) { + $.each(this.doc.getImageItems('object'), function(i, e) { self._push.apply(self, e); }); @@ -131,7 +131,7 @@ args.unshift($(e).text()); objects.push(args); }) - self.doc.setImageItems('obiekt', objects); + self.doc.setImageItems('object', objects); this.ias.setOptions({disable: true, hide: true});