annotorious / annotorious-v1

Project has moved to http://github.com/annotorious/annotorious
https://annotorious.com
MIT License
593 stars 142 forks source link

Is there a way to use annotorious without save/cancel popup? #177

Open andrewkouri opened 7 years ago

andrewkouri commented 7 years ago

Would like to use Annotorious just for the bounding boxes, however the save and cancel popups are causing repetitive motion injury.

forthtemple commented 6 years ago

In editor.js in the function

annotorious.Editor.prototype.open = function(opt_annotation, opt_event)

under the line

this._annotator.fireEvent(annotorious.events.EventType.EDITOR_SHOWN, opt_annotation);

put the line this._btnSave.click();

This will automatically close the annotation editor box with no comment