Albert Yi
1351c8234c
Merge pull request #3878 from evazion/fix-fetch-source-rendering
...
Render "Fetch source data" box server-side
2018-09-11 12:08:48 -07:00
evazion
10358d4211
Fix #3881 : It has been reviewed by X moderators.“ message.
2018-09-10 17:39:49 -05:00
evazion
056fe365f2
Render "Fetch source data" box html server-side.
...
Instead of calling /sources.json and rendering the "Fetch source data"
box client-side in Javascript, call /sources.js so we can render the
html server-side.
2018-09-08 15:42:16 -05:00
Albert Yi
b1a9337897
Merge pull request #3875 from evazion/fix-3873
...
Fix #3873 : Batch bookmarklet for tumblr reports wrong posts as already uploaded
2018-09-07 14:15:24 -07:00
evazion
99a5e885e0
artist_url.rb: remove legacy artist url normalization code.
...
* `legacy_normalize` came from c6012535 , which is no longer a problem.
* `normalize_for_search` is only used for "[mass edit]" links
in artist entries. These links are a shortcut for performing a
`-artist_name source:<artist_url> -> artist_name` mass edit to tag
untagged artists, but this won't work for most sites these days.
2018-09-07 12:55:51 -05:00
evazion
950fcdb7b2
uploads: add new source:<url> dupe check ( fix #3873 )
...
* On the /uploads/new page, instead of just showing a "This post has
probably already been uploaded" message, show the actual thumbnails of
posts having the same source as what the user is trying to upload.
* Move the iqdb results section up top, beside the related posts section.
2018-09-06 20:43:20 -05:00
evazion
07c0695ac1
uploads: remove "this post was probably already uploaded" dupe check.
...
Also makes it so that using the bookmarklet always triggers async upload
preprocessing. Before it was only triggered when the source passed a
dupe check, but that check was inaccurate (#3873 ).
2018-09-06 20:43:04 -05:00
Albert Yi
4b9f3e384f
include more messaging for user feedback
2018-09-05 16:32:18 -07:00
Albert Yi
c3b17f5fcc
Revert "remove global danbooru object js in default layout"
...
This reverts commit 68e7de1fc4 .
2018-09-04 14:26:37 -07:00
Albert Yi
68e7de1fc4
remove global danbooru object js in default layout
2018-09-04 14:08:37 -07:00
Albert Yi
0529ec9ad0
Merge pull request #3862 from evazion/fix-3857
...
Refactor searching text attributes
2018-09-04 13:25:40 -07:00
evazion
1bfe763182
related tags: remove dead #artist-tags-container code.
...
Dead since 78900c4d3 .
2018-09-03 19:13:09 -05:00
evazion
bc7ead5396
Fix #3857 : Add searching mod actions by message.
...
Also allow searching user feedbacks and bulk update requests.
2018-08-31 19:59:51 -05:00
Albert Yi
64c3bc18a7
rename ref and url fields to upload_source and upload_referer_url
2018-08-29 16:46:04 -07:00
evazion
a8ae4d3f36
Fix #3849 : Forum Button in the topbar has broken css
2018-08-29 14:29:15 -05:00
Albert Yi
68c30961ac
Merge pull request #3805 from r888888888/refactor-sources
...
Refactor sources
2018-08-28 12:13:15 -07:00
evazion
604bfb0923
Fix #3846 : Subscribed forum posts link to invalid URL in email updates.
...
Test: http://localhost/rails/mailers/user_mailer/forum_notice
2018-08-27 22:04:37 -05:00
evazion
47e26419d3
nav menu: add html ids to secondary nav menu links ( #3844 ).
2018-08-27 20:57:59 -05: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
3dafca9aec
Fix #3842 : Mods can demote other mods or admins.
2018-08-25 13:52:50 -05:00
evazion
847237980b
Fix #3469 : Rejecting post shouldn't hide pending/flagged notices
...
Just reload the page entirely instead of trying to update it in place.
2018-08-25 00:39:08 -05:00
evazion
e10df5bdf7
Fix #3839 : Allow prepopulating upload form with url params.
2018-08-24 17:39:26 -05:00
Albert Yi
762dc3da24
Refactor sources
2018-08-24 12:10:51 -07: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
a6162246f4
Fix #3830 : JS Upload ignores set Max-Filesize bigger than 265 MB.
2018-08-22 20:24:52 -05:00
evazion
8890baaf42
Fix #3821 : Blacklist and mod queue.
2018-08-22 18:14:13 -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
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
3ae913a707
html: convert html comments to erb comments.
...
Avoid emitting useless comments in the html.
2018-08-17 18:55:21 -05:00
evazion
3f7b1e0b13
html: fix invalid </meta>, </link>, </input> closing tags.
2018-08-17 18:41:48 -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
7aa2a41798
blacklists: fix flickering of inline blacklists.
2018-08-14 16:04:08 -05:00
evazion
33ed762e91
posts/show: eliminate unused <meta> tags.
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
77d0c46b35
Merge pull request #3812 from evazion/feat-declarative-shortcuts
...
Add declarative keyboard shortcuts
2018-08-13 18:08:31 -07:00
evazion
bcaee199f5
favorites: unify create.js.erb & destory.js.erb code paths.
2018-08-12 15:51:18 -05:00
evazion
fb91bbc6c5
Fix #3813 : Favorite limit can be bypassed.
2018-08-12 14:22:08 -05:00
evazion
bbaadda1e3
Convert keyboard shortcuts to use data-shortcut.
2018-08-12 12:09:58 -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
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