szurubooru/client/js
rr- d5e197e6ea client/general: add empty href for link buttons
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.
2016-08-22 01:40:30 +02:00
..
controllers client/posts: implement upload form 2016-08-21 23:43:36 +02:00
controls client/general: add empty href for link buttons 2016-08-22 01:40:30 +02:00
models client/posts: implement upload form 2016-08-21 23:43:36 +02:00
util client/general: add empty href for link buttons 2016-08-22 01:40:30 +02:00
views client/general: add empty href for link buttons 2016-08-22 01:40:30 +02:00
.gitignore client/build: true template precompiling 2016-05-21 10:04:23 +02:00
api.js client/general: use resource versioning 2016-08-07 09:55:51 +02:00
config.js split files into client/ and server/ 2016-04-01 18:48:16 +02:00
events.js client/general: remove api calls from controls 2016-06-18 10:35:20 +02:00
main.js client/snapshots: add snapshots browser 2016-08-20 13:01:17 +02:00
router.js client/paging: fix endless scroll return path 2016-07-08 00:54:24 +02:00
tags.js client/tags: fix handling malformed tag export 2016-08-13 13:38:37 +02:00
templates.js client/build: true template precompiling 2016-05-21 10:04:23 +02:00