Commit Graph

27 Commits

Author SHA1 Message Date
evazion
031cb6b8cf comments.js: use event delegation to bind click handlers.
Use event delegation to bind click handlers so that they don't have to
be rebound when comments are dynamically loaded with "Show all comments".
2018-08-09 14:45:24 -05:00
evazion
8e8a39af43 comments.js: fix forms flickering on page load.
Mark the edit form, new comment form, and unvote links as hidden in
html, instead of showing them by default then hiding them later in
Javascript. This eliminates flickering on page load.
2018-08-09 14:44:20 -05:00
evazion
abe8b9c071 Fix "Show all comments" link.
The second argument to `trigger` is supposed to be an array.

ref: https://danbooru.donmai.us/forum_topics/9127?page=250#forum_post_149379
2018-08-08 23:44:35 -05:00
Albert Yi
62027e8771 remove unused js var 2018-08-06 10:43:26 -07:00
Albert Yi
fd8568c726 Merge branch 'master' into feat-eslint 2018-08-06 10:27:32 -07:00
Albert Yi
3672eedd36 expose additional js modules (#3795) 2018-08-06 10:13:11 -07:00
evazion
f72b32b27b Fix eslint warnings. 2018-08-05 18:30:25 -05:00
Moebius-Strip
1a79443fe8 Ugoira play/pause button hide fix
Arrow functions don't allow the use of "this" (ends up returning the window object) so the buttons are failing to hide themselves.
2018-08-05 14:20:36 -04:00
r888888888
88c2fa69f3 fix js for ugoira player 2018-08-04 21:59:58 -07:00
r888888888
f09c5868e3 export utility js 2018-08-04 17:16:54 -07:00
r888888888
660cd6ce62 export blacklist, comment, dtext, postmodemenu, and note javascripts (#3795) 2018-08-04 17:13:26 -07:00
evazion
9ee93a8d1f Utility.keydown(): fix search+replace mistake (#3799). 2018-08-04 18:14:54 -05:00
evazion
5de0bd2ebb cookie.js: remove unused code.
Unused since 65a87941.
2018-08-04 18:14:54 -05:00
evazion
0c5b5e28b5 utility.js: remove unused get_url_parameter function.
Unused since 025d66a6.
2018-08-04 18:14:54 -05:00
evazion
7c524f867b Fix more missing Utility imports (#3791). 2018-08-04 11:37:25 -05:00
evazion
2b33d23168 Fix broken commentary fetch in "Add commentary" dialog (#3791). 2018-08-04 11:31:44 -05:00
evazion
8589d514dc Fix #3799: Fetch source data link is broken 2018-08-04 10:28:14 -05:00
Albert Yi
718e641f51 remove similar users report 2018-08-03 17:40:00 -07:00
Albert Yi
d999bd124c remove unused hash method on string 2018-08-03 17:26:38 -07:00
Albert Yi
cffb08a4b6 add global hooks for autocomplete functions #3795 2018-08-03 16:02:47 -07:00
r888888888
477a5a8ac3 fix recommended js 2018-08-02 23:53:28 -07:00
Albert Yi
7099065c3f fix tag colors 2018-08-02 16:03:30 -07:00
Albert Yi
56127c5ac1 fix related tags js 2018-08-02 15:59:49 -07:00
Albert Yi
cdb0a2cac7 remove unused export 2018-08-01 16:12:22 -07:00
Albert Yi
c782f06814 remove unused assets 2018-08-01 15:25:54 -07:00
Albert Yi
6fde3c20cf fixes for #3791 2018-07-31 16:44:55 -07:00
Albert Yi
6fa0ae2cf1 Migrate assets to use Webpacker 2018-07-27 15:24:05 -07:00