evazion
cd11ae6008
upload page: fix fetch source data when not using bookmarklet.
...
* #upload_referer_url no longer exists, just using #ref works.
* #upload_source defaults to params[:url], so using it instead of #url still works.
ref: https://github.com/r888888888/danbooru/issues/3850#issuecomment-417116385
2018-08-29 16:54:03 -05:00
Albert Yi
ab220f295c
search for source/referer in additional elements
2018-08-29 14:04:10 -07:00
evazion
a8ae4d3f36
Fix #3849 : Forum Button in the topbar has broken css
2018-08-29 14:29:15 -05:00
Albert Yi
66e413b540
Adds fuzzy string matching and prefix matching
2018-08-28 16:41:52 -07:00
evazion
4e1d76da81
html: add controller & action attributes to <body> tag ( #3844 ).
2018-08-26 16:02:06 -05:00
evazion
b98bc26397
nav menu: add html ids to main menu nav links ( #3844 ).
2018-08-26 13:12:41 -05:00
evazion
8ccc238791
nav menu: remove duplicate "More »" link.
...
Remove a second hidden "More »" link from the nav menu. This was
leftover code first added in f2f524b87 and later reverted in 68161f7b8 .
2018-08-26 13:11:26 -05:00
evazion
f9a39c9fbe
Fix #3840 : "Q" moves cursor to beginning of search bar.
2018-08-24 20:31:37 -05:00
Albert Yi
54363ffecf
Merge pull request #3827 from evazion/fix-3709
...
Fix #3709 : Provide OR capability for blacklist items
2018-08-23 13:54:30 -07:00
evazion
4f02c7f70a
search: add status:modqueue, status:unmoderated metatags.
...
* status:modqueue = ~status:pending ~status:flagged
* status:unmoderated = status:modqueue -user:self -approver:self -disapproval:any
2018-08-23 14:48:39 -05:00
evazion
89c4fe150a
search: add disapproval:<any|none|disinterest|poor_quality|breaks_rules> metatag.
2018-08-23 14:08:02 -05:00
evazion
db23e06a4f
comments.js: remove unused import.
2018-08-22 20:29:51 -05:00
evazion
8890baaf42
Fix #3821 : Blacklist and mod queue.
2018-08-22 18:14:13 -05:00
evazion
d6eecb5466
blacklists: truncate display of long blacklist rules.
2018-08-21 23:33:33 -05:00
evazion
6ccf4ed9c0
blacklists: refactor blacklist html+css.
...
* Consolidate blacklist css in one file.
* blacklist box: fix tag colors not dimming on hover.
* blacklist box: allow middle clicking on tags to open in new tab.
* /wiki_pages: move blacklist controls to top of tag sidebar.
* /wiki_pages: fix missing "disable all" / "re-enable all" buttons.
2018-08-21 23:33:08 -05:00
evazion
d26d450c09
Fix #3709 : Provide OR capability for blacklist items.
2018-08-21 23:31:25 -05:00
Albert Yi
0fcdc30b69
Merge pull request #3817 from evazion/fix-3816
...
Avoid flickering hidden page elements during page loads
2018-08-21 14:44:26 -07:00
evazion
f85b34cd9f
shortcuts.js: simplify scroll up/down hotkeys.
2018-08-17 16:25:47 -05:00
evazion
e9d6a0fda6
utility.js: remove dead Utility.without function.
2018-08-17 16:25:47 -05:00
evazion
21895ef0aa
utility.js: simplify $.fn.selectEnd().
...
Remove createTextRange fallback; setSelectionRange is supported by all modern browsers.
https://caniuse.com/#feat=input-selection
2018-08-17 16:25:47 -05:00
evazion
dfffabd662
utility.js: replace Utility.scroll_to with Element.scrollIntoView.
...
https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
https://caniuse.com/#feat=scrollintoview
2018-08-17 16:25:47 -05:00
evazion
ad056e69d5
utility.js: simplify even/odd table row striping.
2018-08-17 16:25:36 -05:00
evazion
ec0646c234
posts/show: don't scroll page when opening edit dialog.
...
Don't scroll up the page when opening the tag edit dialog via shift+e.
Fixes regression in #3812 .
2018-08-15 18:56:52 -05:00
Albert Yi
86f05ef9e3
remove unused paginator.js ref
2018-08-15 16:11:26 -07:00
Albert Yi
f88234e21d
export additional js libs
2018-08-15 15:58:36 -07:00
evazion
56beed8a23
dtext: fix flicker in [expand] elements.
2018-08-14 16:04:13 -05:00
evazion
0b6e89c908
dtext: fix flickering dtext preview div.
2018-08-14 16:04:08 -05:00
evazion
e57eb87632
forum_topics/show: fix flickering forum post edit forms.
2018-08-14 16:04:08 -05:00
evazion
7aa2a41798
blacklists: fix flickering of inline blacklists.
2018-08-14 16:04:08 -05:00
evazion
766d68c4ee
posts/show: fix flickering post unvote link.
2018-08-14 16:04:08 -05:00
evazion
7174c24ac8
posts/show: fix flickering recommended tab.
2018-08-14 16:04:08 -05:00
evazion
73fc7cab7f
posts/show: fix flickering tabs in artist commentary box.
2018-08-14 16:04:08 -05:00
evazion
0c49b162f0
posts/show: fix flickering favlist show/hide buttons.
2018-08-14 16:03:16 -05:00
evazion
72a37c2f94
posts/show: fix flickering fav/unfav buttons.
2018-08-14 16:03:16 -05:00
evazion
7028417bfb
posts/show: fix 'Flag' option in sidebar.
...
* Don't show 'Flag' option on already flagged posts.
* Drop flag/appeal link show/hide Javascript (did nothing, links were already shown/hidden in html).
2018-08-14 16:03:16 -05:00
evazion
d7ec28b804
posts/show: fix 'Hide from queue' option in sidebar.
...
Fix 'Hide from queue' option appearing on deleted posts, but not on
pending or flagged posts.
2018-08-14 12:48:13 -05:00
Albert Yi
a7450303e0
Merge branch 'master' into fix-3807
2018-08-13 18:21:53 -07:00
evazion
bbaadda1e3
Convert keyboard shortcuts to use data-shortcut.
2018-08-12 12:09:58 -05:00
evazion
d369d38419
shortcuts.js: Add declarative data-shortcut keyboard shortcuts.
2018-08-11 16:38:21 -05:00
evazion
755397e6c9
comments.js: remove dead code.
...
Remove dead and hide_threshold_comments and initialize_expand_links
methods. initialize_expand_links is dead because `.comment-section`
doesn't exist.
2018-08-09 14:45:26 -05:00
evazion
130570aa33
comments.js: fix thresholded comments.
...
* Restore behavior of thresholded comments being greyed out (lost in 6fa0ae2cf ).
* Set the `below-threshold` class for thresholded comments in the html instead of in javascript.
* Remove `include_below_threshold` param; it was always true when clicking "Show all comments".
2018-08-09 14:45:26 -05:00
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
evazion
107d19c6b3
Tag scripts: drop [if ...] and [reset] syntax ( fix #3807 , #3773 )
...
Fixes #3807 . Drops the TagScript module entirely and replaces it with
a simple call to Post.tag.
Simultaneously fixes #3773 as a consequence of removing TagScript.run.
Post.update already updates data-tags by itself, so there was no need
for TagScript.run to update data-tags as well.
2018-08-08 16:01:42 -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