• Robert Knight's avatar
    Preserve selection when switching accounts · 347dcefa
    Robert Knight authored
    When visiting a direct-linked annotation (ie. #annotations:<id> is
    present in the URL) we want to preserve the selection when the user
    signs in, whether the annotation was private or in a group, in which
    case they will need to sign in to see it, or public, in which case they
    might need to sign in to reply.
    
    Previously public direct-linked annotations became deselected when
    signing in because they were unloaded when switching accounts, and this
    fired the same ANNOTATION_DELETED event as when an annotation is
    removed, which results in the annotation being removed from the
    selection.
    
    This commit enables the selection to be preserved by introducing a
    different event within the app when annotations are unloaded vs.
    deleted. When an annotation is unloaded, it is not removed from the
    selection.
    347dcefa
Name
Last commit
Last update
..
annotator Loading commit data...
directive Loading commit data...
filter Loading commit data...
test Loading commit data...
vendor Loading commit data...
admin-site.js Loading commit data...
annotation-mapper.js Loading commit data...
annotation-metadata.js Loading commit data...
annotation-sync.coffee Loading commit data...
annotation-ui-controller.js Loading commit data...
annotation-ui-sync.js Loading commit data...
annotation-ui.js Loading commit data...
annotation-viewer-controller.coffee Loading commit data...
app-controller.js Loading commit data...
app.js Loading commit data...
auth.js Loading commit data...
bridge.coffee Loading commit data...
create-group-form.js Loading commit data...
cross-frame.coffee Loading commit data...
date-util.js Loading commit data...
discovery.coffee Loading commit data...
drafts.js Loading commit data...
dropdown-menu.js Loading commit data...
events.js Loading commit data...
features.js Loading commit data...
flash.coffee Loading commit data...
form-respond.coffee Loading commit data...
frame-rpc.js Loading commit data...
groups.js Loading commit data...
host.coffee Loading commit data...
installer-controller.js Loading commit data...
karma-phantomjs-polyfill.js Loading commit data...
karma.config.js Loading commit data...
legacy-site.js Loading commit data...
local-storage.coffee Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
permissions.coffee Loading commit data...
polyfills.js Loading commit data...
query-parser.coffee Loading commit data...
raven.js Loading commit data...
render.coffee Loading commit data...
retry-util.js Loading commit data...
search-client.js Loading commit data...
search-filter.coffee Loading commit data...
session.js Loading commit data...
settings.js Loading commit data...
site.js Loading commit data...
store.js Loading commit data...
stream-controller.coffee Loading commit data...
stream-filter.coffee Loading commit data...
streamer.js Loading commit data...
tags.coffee Loading commit data...
threading.coffee Loading commit data...
time.js Loading commit data...
tsconfig.json Loading commit data...
ua-detect.js Loading commit data...
unicode.coffee Loading commit data...
view-filter.coffee Loading commit data...
websocket.js Loading commit data...
widget-controller.js Loading commit data...