Commit Graph

226 Commits

Author SHA1 Message Date
evazion
6e3763e7d7 Remove minlength for autocompleting labels in saved search dialog.
Trigger autocomplete after typing the first letter when adding labels in
the saved search dialog.
2017-07-11 19:27:04 -05:00
evazion
51d0feb2c6 Fix #3214: Add autocomplete for saved searches.
* Autocomplete the `search:<label>` metatag.

* Make label autocompletion do a prefix match instead of a substring
  match. Example: `search:ar` matches `artists`, not `characters`. This
  is how tags and most other things are autocompleted.
2017-07-11 19:24:49 -05:00
Albert Yi
494ad99aac Merge pull request #3111 from evazion/fix-3099
Fix #3099: NilClass error for approval API request
2017-06-05 12:03:18 -07:00
evazion
fdf8e7d5d7 Fix mode menu 'approve' option.
* Fix routing error in respond_with (didn't use /moderator namespace).

* Fix /moderator/posts/approvals.json response to return full
  PostApproval object, not just a success/failure message.

* Simplify the javascript a bit (use $.post instead of $.ajax).
2017-06-04 12:14:35 -05:00
evazion
3880fbe13e /posts/$id: fix shift+O to approve shortcut.
`Danbooru.Post.approve` is used for approving posts via the mode menu.
It doesn't hide all the notices or the approve/disapprove/flag buttons.
Click the link instead to hide those things.

Click the #quick-mod-approve link instead of #approve because #approve
prompts for confirmation.
2017-06-04 10:07:26 -05:00
BrokenEagle
6f593de46d Resize images for mobile layout 2017-06-03 12:52:27 -07:00
Albert Yi
dc02dcf0e0 Merge pull request #3015 from evazion/feat-replace-images
Fix #2949: Sample image replacement ability
2017-05-12 17:11:29 -07:00
evazion
7ade3b6831 Fix #2352: return raw usernames in API instead of pretty names. 2017-05-03 22:16:38 -05:00
evazion
4e841c4ea5 post replacement: add "Replace Image" dialog to post sidebar. 2017-05-02 20:41:19 -05:00
evazion
59a179fa15 /posts: add shift+F to unfavorite hotkey. 2017-04-25 01:50:14 -05:00
evazion
5303d1052f /posts: fix saved search dropdown for post show page. 2017-04-20 19:05:54 -05:00
r888888888
c4b5998e64 fixes #2692: Rework bookmarklet preview 2017-03-21 15:41:20 -07:00
r888888888
70d057f8f3 move saved search option to sidebar 2017-03-20 16:19:15 -07:00
r888888888
da06bee0ab revamp saved search implementation 2017-03-15 15:36:48 -07:00
evazion
d71136ce72 Disable left/right for prev/next page on /posts/:id.
Interferes with horizontal scrolling of wide images.
2017-02-03 03:40:32 -06:00
r888888888
8a93fdf18f additional saved search fixes 2017-01-25 12:48:47 -08:00
evazion
cfeb95c8a8 hotkeys: add left arrow, right arrow bindings for prev/next page. 2017-01-24 02:46:01 -06:00
evazion
c3fa653fc5 hotkeys: refactor to use .on(), namespaces.
* Use .on() instead of .bind() because bind is deprecated in jquery 3.0.
* Ensure enable-js-navigation is always respected.
* Namespace keybindings so they may be disabled by userscripts with
  e.g. $(document).off("keydown.danbooru") or $(document).off("next_page").
2017-01-24 02:45:55 -06:00
r888888888
a53341d112 fixes #2846: revert postvote js change 2017-01-17 14:56:14 -08:00
Albert Yi
bdac591266 fixes #2838 2017-01-16 12:57:43 -08:00
Albert Yi
2af622e7a7 add ban to post mode menu 2016-12-09 11:56:25 -08:00
Moebius-Strip
74872c3cb6 Fix A & D shortcut JavaScript for post search nav
Replaced the operator with one for detecting a single space delimited value in an attribute.
2016-03-07 02:32:51 -05:00
Toks
af2167ea32 Fix bugs when anonymous uses member-only shortcuts 2016-01-13 11:48:25 -05:00
Toks
e9d79b7ae0 Fix approval notice not displaying if using shift+o shortcut 2016-01-13 11:43:54 -05:00
Toks
a8f3a58a37 #2523 show null category as uncategorized 2015-11-18 18:55:38 -05:00
r888888888
156165a86f improved ui for saved searches #2523 2015-11-17 17:36:57 -08:00
Toks
fceba9fa8b #2523 Fix cancel button not canceling saving search 2015-11-13 00:18:40 -05:00
Toks
2d3b7182bc #2523 Enable categorized saved searches by default 2015-11-13 00:14:08 -05:00
Toks
250970a4b8 Fix images being scaled incorrectly at low screen widths
fixes #2548
2015-11-11 02:48:16 -05:00
r888888888
6514265ca7 support new listbooru changes #2523 2015-11-03 16:50:52 -08:00
r888888888
fafb881080 remove support for listbooru for tag subscriptions, enable for saved searches #2523 2015-10-27 17:47:07 -07:00
r888888888
f87c71cf23 remove post view counts, add search counts 2015-07-27 17:27:40 -07:00
r888888888
cc6da3ff89 fixes #2454: Add a new popular posts page for view counts 2015-07-24 15:56:41 -07:00
r888888888
9e6d08600c store post view counts in reportbooru/fetch view counts from reportbooru #2128 2015-07-21 13:09:32 -07:00
Toks
c2530e9e53 Allow A/D shortcuts for browsing favgroups 2015-06-25 10:29:59 -04:00
Toks
a0baaea1b2 fix #1852 2015-04-23 11:20:14 -04:00
Toks
718131737e fixes #2332 2015-01-10 12:15:14 -05:00
Toks
e53970d6f6 Option to set category when first creating a saved search 2014-11-26 19:41:54 -05:00
Toks
b43fb8ba1b #1686: Fix regression
903e744ae4 made it look like all searches
have deleted posts
2014-11-23 10:40:02 -05:00
Toks
ab7d06cd30 Fix seek slider for thin ugoira 2014-11-06 17:35:40 -05:00
Toks
b6abd4f415 #2284 resize ugoira controls with image 2014-10-26 11:41:21 -04:00
Toks
bb0adfb00b #2284 fix aspect ratio with "resize to window"
For some reason the height is getting scaled twice for ugoira, causing a
messed up aspect ratio because it was relative to the current height.
This makes it relative to the original height, so it should always be
correct even after multiple scales.
2014-10-26 11:34:57 -04:00
Toks
4fcf382ccf Fixminor bug with displaying parent border 2014-10-14 12:48:54 -04:00
r888888888
81c5c15758 revert hammer js changes 2014-08-20 16:50:53 -07:00
r888888888
461f3b4a4d fixes #2243 2014-08-18 13:13:49 -07:00
r888888888
2492148ecd Revert "fixes #2175"
This reverts commit b99ba4a088.
2014-06-20 15:52:47 -07:00
r888888888
f02f72fac1 implement saved searches, move user boolean settings to bitprefs 2014-06-18 16:16:27 -07:00
Toks
89d8c01da2 Add V keyboard shortcut for toggling original/sample size 2014-06-09 16:35:16 -04:00
r888888888
9390844aec hide approval status after approval 2014-06-04 17:48:12 -07:00
r888888888
d019389043 add notice for approving posts with shift+o 2014-06-03 14:28:33 -07:00