• Robert Knight's avatar
    Fix unsaved changes to annotations being lost when changing permissions · a1439c09
    Robert Knight authored
    When changing permissions via the dropdown menu,
    the changed permissions were applied to the _domain model_
    representing the saved annotation instead of the _view model_
    representing the current annotation being edited.
    
    The change to the domain model triggered a reset of the view
    model via AnnotationController.render(), losing any unsaved edits.
    
    This commit makes AnnotationController.setPrivacy() apply permissions
    changes to the view model in the same way as other edits in the
    annotation view. These then only take effect when the 'Post to'
    button is clicked.
    
    Fixes #2567
    a1439c09
Name
Last commit
Last update
h Loading commit data...
scripts Loading commit data...
.hound.yml Loading commit data...
.jscsrc Loading commit data...
.jshintignore Loading commit data...
.jshintrc Loading commit data...
package.json Loading commit data...