Anonymous checkbox on images would not actually do anything, when the
global checkbox was unchecked. The value of anonymous becomes a node,
and it fails the anonymous === true check in save().
I don't understand why anonymous is treated differently from other
post parameters and supplied as an argument to save().
Keeping it the way it is, I guess...
* Continue uploading remaining posts in an upload list even
when one fails
* Allow option to continue uploading even when similar posts are found
Closes#400
Anonymous node does not exist in view when a user without anonymous upload permission tries to post upload. So in this case we should check for the existence of anonymousNode first.
In e464e69 I removed href='#' but I noticed that it broke some things.
Readding href serves two purposes:
- it makes links reachable with Tab key
- it makes links clickable with Enter key
The alternative to this approach was to introduce [tabindex] and [role]
attributes. But not only using tabindex=0 with <a/> is questionable,
it'd require adding a keyboard handler that'd intercept space and return
key presses and simulated link clicks. Since it's best to leave this
kind of thing to the native UI, I went with readding hrefs instead. I
believe that hash hrefs, even though being a common practice, are silly,
so I decided to settle down with empty hrefs.
As a bonus, I added a snippet that prevents middle mouse clicks from
opening such links/buttons in new tabs, which was the motivation for
e464e69.