evazion
f886f2fdb3
posts/show: load flag/appeal/replacement dialogs via ajax ( #3922 ).
2018-09-26 20:01:14 -05:00
evazion
b4cf423058
Clean backtraces in uploads/show, static/error.json.
2018-09-23 20:08:13 -05:00
evazion
f917b83d6f
/artists: drop deprecated search syntax, add regex search for names.
...
Drop support for the following pseudo-metatags in the Name field in the
artists search form:
* name:<name>
* other:<other name>
* group:<group name>
* status:banned
* status:active
* http://www.example.com
Instead, make the Name field do a wildcard search against the artist
name, group name, or other names. If the query looks like `/regex/`,
then do a regex search against any of these names.
/artists?search[name] now does a literal exact match and
/artists?search{any_name_matches] does the above wildcard/regex search.
2018-09-21 20:51:53 -05:00
evazion
29cdaddd86
PostSetPresenters::Post#related_posts: clean up metatag parsing ( #2894 ).
...
* Fix `#related_tags` to use `Tag.has_metatag?`.
* Fix Tag::SUBQUERY_METATAGS and Tag::METATAGS to be arrays instead of regexes.
2018-09-20 19:23:47 -05:00
evazion
823f78af49
autocomplete.js: add data attrs on autocomplete results ( #3902 ).
2018-09-17 18:18:33 -05:00
evazion
bbb233b93f
css: remove unused or redundant rules.
2018-09-14 13:31:59 -05:00
evazion
0aecc9d34c
css: fix 020_base.scss getting imported twice.
...
This import caused all in the rules in 020_base.scss to be included
twice in the final stylesheet.
2018-09-14 10:31:30 -05:00
evazion
a5ef97a608
css: remove obsolete/unused mixins.
2018-09-14 00:34:34 -05:00
evazion
42f97bf3e5
Fix external link icons ( #3890 ).
2018-09-14 00:21:08 -05:00
evazion
091c4c97a8
Fix #3895 : 'Related tags' not appearing automatically on uploads page.
2018-09-12 19:26:59 -05:00
evazion
10ca4dd3ad
artists: replace artist finder with fetch source data.
...
* On posts, automatically trigger "Fetch source data" when clicking the
Edit tab, instead of triggering the artist finder button. This way we
find both the artist and the translated tags in one ajax call.
* Remove the "Artist" finder button next to the source field. This isn't
necessary given that "Fetch source data" finds the artist itself.
* Remove the /artists/finder.json API endpoint. This is no longer used
after removing the "Artist" finder button.
2018-09-11 20:09:25 -05:00
evazion
8915437b4a
Fix #3439 : Identify external links in DText.
2018-09-11 15:10:59 -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
evazion
22c27f8910
post previews: fix css for captioned post previews.
...
Captioned post previews (previews with the pool name, similarity, or
size beneath) need to have `height: auto` set, otherwise they'll default
to `height: 154px` (just enough for the image) and the caption won't be visible.
2018-09-06 20:44:47 -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
7ecf6f1ba2
Fix link colors inside dialogs, autocomplete.
...
ref: f9f0da054 , https://github.com/r888888888/danbooru/issues/3791#issuecomment-410378703 .
2018-09-05 23:48:51 -05:00
Albert Yi
4b9f3e384f
include more messaging for user feedback
2018-09-05 16:32:18 -07:00
Albert Yi
f9f0da0543
fix link colors in notices
2018-09-05 14:04:46 -07:00
Albert Yi
a41d006380
fix pool ordering js ( #3869 ), fix forum topic tests
2018-09-05 12:01:59 -07:00
evazion
3bed5f3cf9
Fix #3867 : Add namespaces to all Javascript events.
2018-09-04 12:26:18 -05:00
evazion
c03af7f563
posts.js: remove dead search dropdown code.
2018-09-04 12:26:18 -05:00
evazion
1bfe763182
related tags: remove dead #artist-tags-container code.
...
Dead since 78900c4d3 .
2018-09-03 19:13:09 -05:00
BrokenEagle
4c85cf4a32
Fix #3853 : Blacklist minscore is broken.
2018-08-30 17:42:21 -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
Albert Yi
692c3ddac8
ignore #post_source when autorunning the iqdb search ( #3851 )
2018-08-29 16:20:36 -07:00
Albert Yi
ed050e74b9
update iqdb source in uploads js ( #3851 )
2018-08-29 15:15:03 -07:00
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
f88234e21d
export additional js libs
2018-08-15 15:58:36 -07:00