Commit Graph

1067 Commits

Author SHA1 Message Date
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
evazion
601b439f96 Add order:comment_bumped, order:comment_bumped_asc metatags. 2017-01-21 11:10:40 +00: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
evazion
f57f352838 Name changes: format processed requests more nicely. 2017-01-15 04:22:00 +00:00
Albert Yi
f1c78d9a29 stylize hints 2017-01-11 11:39:14 -08:00
evazion
8a67cb847d Fix artist commentary dialog submitting wrong form. 2017-01-11 04:48:44 -06:00
Albert Yi
0f7570aaaf Merge pull request #2817 from evazion/fix-mention-autocomplete
Fix @mention autocomplete for comments & forum posts.
2017-01-03 16:20:35 -08:00
Albert Yi
ad4b55c334 fixes #2815: Posts Screen Edit Mode Bug 2017-01-03 14:54:10 -08:00
evazion
469f48a118 Fix @mention autocomplete for comments & forum posts.
Fix comment autocomplete (broken in 1257639). Also fix forum post
autocomplete (didn't work when editing forum posts).
2017-01-02 12:53:30 -06:00
Albert Yi
2fef0cdef9 Merge pull request #2804 from evazion/feat-comment-as-mod
Add option to comment as moderator (fix #2799)
2016-12-27 11:49:36 -08:00
Albert Yi
5c0836a9c8 Merge pull request #2803 from evazion/fix-comment-cleanups
Various minor comment code cleanups
2016-12-27 11:42:08 -08:00
evazion
68744bc24a Add controls for copying commentary from source or another post. 2016-12-27 06:01:23 +00:00
evazion
91e368f08a Highlight stickied comments; don't dim downvoted stickies.
The highlight color uses the same color as the subnav bar background
color. Make it a tad brighter so it's more visible.
2016-12-26 23:52:45 -06:00
evazion
1257639109 Add 'post as moderator' option for comments.
* Add 'post as moderator' option to comment form. This creates a so-called sticky comment.
* Downvotes have no effect on stickied comments; they're always visible, regardless of comment thresholds.
* Only mods may sticky comments.
* Mods may sticky comments by other users.
2016-12-26 23:52:45 -06:00
evazion
390524c7f5 Remove obsolete IE8 opacity hacks; remove unused transparency mixin. 2016-12-26 23:52:27 -06:00
evazion
d79f1aac96 Move stupidtable.js into application.js.
Fixes this javascript error:

    Uncaught TypeError: $(...).stupidtable is not a function

on these pages:

* http://safebooru.donmai.us/reports/user_promotions
* http://safebooru.donmai.us/reports/contributors
* http://safebooru.donmai.us/reports/janitor_trials

...due to stupidtable.js not loading.
2016-12-20 02:31:05 -06:00
evazion
780fe07976 Move ugoira_player.js into application.js.
Fixes an issue with the ugoira player not working on Safebooru due to
this error:

    Asset filtered out and will not be served: add
    `Rails.application.config.assets.precompile += %w( ugoira_player.js)`
    to `config/initializers/assets.rb` and restart your server
2016-12-20 02:26:13 -06:00
Albert Yi
aa5e65129b Merge pull request #2787 from evazion/fix-video_with_sound-blacklists
Prevent video_with_sound posts from autoplaying when blacklisted.
2016-12-19 13:10:23 -08:00
Albert Yi
66384d78a7 Merge pull request #2789 from evazion/fix-double-uploads
Prevent double uploading when hitting enter key in tag edit box more than once.
2016-12-19 13:09:59 -08:00
Albert Yi
611e5cf5e0 Merge pull request #2788 from evazion/fix-secure-api-keys
Fix #2785: Allow changing API key; require password to view or change key.
2016-12-19 13:09:29 -08:00
evazion
78ca92c981 Fix upload image resizer. (fixes #1375, #2471)
Polling the image height isn't reliable. Wait for the image to be fully
downloaded before resizing it instead.
2016-12-18 20:42:24 -06:00
evazion
b7246d335f Prevent double uploading when mashing enter key in tag edit box. 2016-12-18 18:45:02 -06:00
evazion
a92120e873 Fix #2785: Allow changing API key; require password to view or change key. 2016-12-18 06:30:48 -06:00
evazion
5d0e950cdb Prevent video_with_sound posts from autoplaying when blacklisted. 2016-12-17 18:33:03 -06:00
Albert Yi
2af622e7a7 add ban to post mode menu 2016-12-09 11:56:25 -08:00
evazion
b2a6cf070c Use raw note body instead of sanitized body for note edit box. 2016-11-19 21:33:26 -06:00
Albert Yi
8d0781c27f fixes #2740: random mod queue autoredirects after 5 actions 2016-10-27 13:22:28 -07:00
Albert Yi
589df5f301 implements #2658: private forum topics 2016-10-24 16:56:18 -07:00
Albert Yi
e78b7d2a8c fixes #2716: Wiki pages should be undeletable 2016-10-18 15:45:50 -07:00
Albert Yi
2a5343b8cf add more intelligent js for artist forms 2016-10-18 14:56:40 -07:00
r888888888
efe4c2eb6f fixes #2673: Reduce Vertical Whitespace Padding for Headers 2016-09-13 11:14:52 -07:00
r888888888
2c80d7b82e more intelligent notice for mod queue 2016-09-09 15:08:23 -07:00
r888888888
de34c7fca3 fixes #2650: Add random mode to mod queue 2016-09-08 15:55:06 -07:00
Type-kun
d1674e4cbb Prevent JS mention autocomplete for e-mails (#2655) 2016-09-09 00:00:42 +05:00
r888888888
75b7e6d720 remove js console logging 2016-08-27 19:10:11 -07:00
r888888888
7b7a8cf423 support #2637 blacklisting post scores 2016-08-26 18:24:17 -07:00
r888888888
c0beca8e90 fixes #2631 artist urls in related tags should have option to open in new window 2016-07-25 14:25:09 -07:00
r888888888
35a6f60dc4 add options for modifying commentary/commentary_request tags on form #2623 2016-07-19 16:49:19 -07:00
r888888888
2ce86ecb8b add support for post version queries 2016-06-21 13:14:27 -07:00
r888888888
e1c7fbc373 Revert "move post desc to header at top"
This reverts commit 0ab51f3a83.
2016-05-31 11:15:44 -07:00
r888888888
0ab51f3a83 move post desc to header at top 2016-05-28 14:14:32 -07:00
r888888888
ccd8c43718 fix image resizer on upload page 2016-04-27 16:21:40 -07:00
r888888888
8862c486bb update dtext gem, include more contextual tags on images 2016-03-24 17:26:20 -07: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
r888888888
d66d4dcee4 fixes #2471: Bookmarklet: always show width/height 2016-02-17 16:49:44 -08:00
r888888888
403b918dab fixes #1375: The preview image on the upload page is sometimes displayed at full size 2016-02-17 16:47:14 -08:00
r888888888
fe4cb7f3ba track searches that return no results 2016-02-02 16:25:14 -08:00
r888888888
cd83257939 hide blacklisted posts #2568 2016-01-19 10:45:59 -08:00
r888888888
88b1beb28a Revert "Fix black out in chrome and opera"
This reverts commit 50cd77d3a5.
2016-01-19 10:45:08 -08:00