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;
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');
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);
});
args.unshift($(e).text());
objects.push(args);
})
- self.doc.setImageItems('obiekt', objects);
+ self.doc.setImageItems('object', objects);
this.ias.setOptions({disable: true, hide: true});