JannesMeyer / TabAttack

Advanced Tab management
GNU Affero General Public License v3.0
190 stars 12 forks source link

Enable query to user if there are unsaved changes #7

Closed sknebel closed 9 years ago

sknebel commented 9 years ago

Enables the message box for unsaved changes. Change to how content of editor is set because of ajaxorg/ace#1243 (setting it with editor.setValue() is async and doesn't allow save clearing of history)

potential improvements: should copy-paste out of the editor also count as "saving" it? Add an option to turn the message box off.

JannesMeyer commented 9 years ago

Awesome pull request! Thank you! I didn't know Ace could do that :+1: