• Robert Knight's avatar
    Improve behavior when selecting pre-created annotations · 796ecdfe
    Robert Knight authored
    Selecting a pre-created annotation in the page resulted in a
    'You do not have permission to see this annotation' being displayed
    because the selection mechanism only supports annotations which have a
    server-assigned ID.
    
    This commit improves that behavior by ignoring annotations without IDs
    when selecting annotations.
    
    It also fixes an issue in AnnotationUISync that prevents Annotation
    objects being replaced in the UI state after they are updated on the
    server. Previously AnnotationUISync would receive the tags of
    annotations that had been selected in the page and would then look up
    annotations in a cache maintained by AnnotationSync in order to get
    Annotation objects that could be passed to `annotationUI` functions
    which needed objects with an ID.
    
    Fixes #3547
    796ecdfe
Name
Last commit
Last update
.github Loading commit data...
h Loading commit data...
scripts Loading commit data...
.gitignore Loading commit data...
.hound.yml Loading commit data...
.jscsrc Loading commit data...
.jshintignore Loading commit data...
.jshintrc Loading commit data...
.npmignore Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...