Commit Graph

6948 Commits

Author SHA1 Message Date
evazion
47677aedf0 post tooltips: make scrollbar thinner. 2018-04-29 11:41:41 -05:00
evazion
862b1bc4c8 post tooltips: don't show if lost focus during ajax call (#3689).
Fix the tooltip appearing and getting stuck when the user mouses out
during the ajax request.
2018-04-29 01:58:39 -05:00
evazion
57203727b6 post tooltips: hide on keypresses (#3689). 2018-04-29 00:17:56 -05:00
evazion
08e25e40c5 post tooltips: disable tooltips on touchscreens (#3689).
On phones / tablets, long pressing a thumbnail sends emulated mouse events
that trigger the tooltip. Disable tooltips while touching is active.
2018-04-29 00:05:33 -05:00
evazion
a6499b5169 post tooltips: add disable option (#3689).
* Add "disable post tooltips" account setting.
* Add back title attribute for when fancy tooltips are disabled.
2018-04-28 23:50:51 -05:00
evazion
1a29b96579 post tooltips: avoid positioning tooltips offscreen (#3689).
ref: http://qtip2.com/plugins#viewport.
2018-04-28 23:49:22 -05:00
evazion
0dcd303546 post tooltips: cache html after first api call (#3689).
Avoid triggering the API call each time you hover over the same post.
Overwrite `content.text` to save the results after the first call.
2018-04-28 23:49:03 -05:00
evazion
e5db839e54 post tooltips: hide when clicking thumbnail (#3689). 2018-04-28 22:01:16 -05:00
evazion
603a27f495 related tags: fix deprecation warning in order("count(*) DESC").
DEPRECATION WARNING: Dangerous query method (method whose arguments are
used as raw SQL) called with non-attribute argument(s): "count(*) DESC".
Non-attribute arguments will be disallowed in Rails 6.0. This method
should not be called with user-provided values, such as request
parameters or model attributes. Known-safe values can be passed by
wrapping them in Arel.sql(). (called from block in calculate_from_sample
at /home/admin/src/danbooru/app/logical/related_tag_calculator.rb:66)
2018-04-28 22:00:20 -05:00
r888888888
185d4ef81f split out tag_relationship has_one relationship on forum post to alias/impication (#3686) 2018-04-28 19:28:17 -07:00
r888888888
c5de0ca425 clear out menu.bindings on autocomplete lib after search (#3688) 2018-04-28 19:10:58 -07:00
r888888888
b0a161b745 remove jquery-ui-autocomplete from compiled app js 2018-04-28 18:38:18 -07:00
r888888888
015aa5abfe fixes #3686 2018-04-28 17:42:39 -07:00
r888888888
11d7010c92 fix css 2018-04-28 12:00:10 -07:00
evazion
4fd4cbd2a6 twitter: fix tests. 2018-04-28 12:33:05 -05:00
evazion
6b4a345378 rails 5: replace redirect_to :back with redirect_back
ref: https://blog.bigbinary.com/2016/02/29/rails-5-improves-redirect_to_back-with-redirect-back.html
2018-04-28 12:24:36 -05:00
Albert Yi
36f15daa49 Merge pull request #3683 from evazion/fix-3678
Fix #3678: "Access denied" when adding commentary.
2018-04-27 17:28:23 -07:00
evazion
18c40b0d60 Fix #3678: "Access denied" when adding commentary. 2018-04-27 18:32:15 -05:00
Albert Yi
d4b1782431 allow more forum posts to be voted on (fixes #3677) 2018-04-27 16:18:31 -07:00
Albert Yi
06e7dbb8e4 fixes #3674 2018-04-27 15:48:52 -07:00
Albert Yi
b93b28d049 add email to cronjobs 2018-04-27 15:06:36 -07:00
Albert Yi
72e7f706df fix scoping bug in dmail 2018-04-27 15:04:27 -07:00
Albert Yi
664a3f02e2 fixes for failed cron maintenance tasks
* update rails scripts for 5.2
* system dmails should be scoped to system
* fix broken url generator in forum notices
2018-04-27 15:01:40 -07:00
evazion
907881aced post tooltips: increase delay, constraint height, condense tags (#3666).
* Increase hover delay to 450ms.
* Set max height and add scrollbars for long tag lists.
* Condense tag list (don't put categories on separate lines).
2018-04-27 13:55:14 -05:00
Albert Yi
0b20648f1f rename jquery qtip css to scss 2018-04-27 11:41:13 -07:00
evazion
d731ec4393 Fix #3673: Autocomplete: hide menu after hitting space. 2018-04-27 13:24:23 -05:00
evazion
c398c8fff6 autocomplete: trigger completion for metatags after typing colon (#3558)
When completing metatags (e.g. `rating:safe`), show completions
immediately after typing the colon (`rating:`), instead of after the
first letter (`rating:s`).
2018-04-27 01:22:26 -05:00
evazion
2f1d185c3e /posts.json: add is_favorited attribute (#3633)
ref: https://github.com/r888888888/danbooru/issues/3633#issuecomment-384863568.
2018-04-27 00:48:53 -05:00
evazion
6ab58104d4 jquery: fix obsolete use of load.
ref: https://jquery.com/upgrade-guide/3.0/#breaking-change-load-unload-and-error-removed
2018-04-27 00:38:46 -05:00
evazion
3ef23faae2 Fix #3669: Normalize mobile.twitter.com sources.
* Normalize sources to https://twitter.com/#{artist_name}/status/#{status_id} after upload.
* Make fetch source data use screen name instead of display name for the artist name.
2018-04-27 00:36:13 -05:00
evazion
c9f35cbacc tag alias corrections: fix ActionView::Template::Error exception (#3668). 2018-04-27 00:17:14 -05:00
evazion
63a29247b2 post tooltips: disable on pool/favgroup order pages.
Disable to avoid tooltips appearing while trying to drag and drop.
2018-04-27 00:08:21 -05:00
evazion
72664e0105 saved searches: fix broken query/label autocomplete. 2018-04-26 23:55:13 -05:00
evazion
a49cb1c105 jquery: fix obsolete uses of success (#3548). 2018-04-26 23:53:49 -05:00
evazion
f7748a2ed7 jquery-ui: fix font color in notice boxes (#3671). 2018-04-26 23:28:00 -05:00
evazion
dd2abeb180 jquery-ui: fix autocomplete menu styling (#3671).
* Wrap menu items in a div.
* Replace ui-state-focus with ui-state-active.
* Make active items have a grey background.

ref: http://jqueryui.com/upgrade-guide/1.12/#require-wrappers-for-each-menu-item
ref: http://jqueryui.com/upgrade-guide/1.12/#use-consistent-styling-for-focused-and-active-items
2018-04-26 23:18:00 -05:00
evazion
a11dbb9186 jquery-ui: fix fonts in dialog boxes (#3671).
Fix the default jquery-ui theme overriding our body font with Arial.
2018-04-26 23:13:21 -05:00
evazion
36b819fdf8 notes.js: fix deprecated dialogClass option.
ref: http://jqueryui.com/upgrade-guide/1.12/#dialog
2018-04-26 22:11:17 -05:00
evazion
87c6698d55 sources.js: remove (dead code). 2018-04-26 21:33:28 -05:00
evazion
f7a44ae8dd Fix redirect in "disable responsive mode" link. 2018-04-26 21:31:53 -05:00
Albert Yi
e29f73ac31 include top tagger info in post tooltip, add box shadow css 2018-04-26 15:56:42 -07:00
Albert Yi
87f0adfda3 Merge pull request #3655 from r888888888/expire-burs
Implement BUR pruning
2018-04-26 15:43:54 -07:00
Albert Yi
f2b525a6d2 Implement forum topic voting and tag change pruning (#3580) 2018-04-26 15:31:06 -07:00
Albert Yi
45fad069d7 Merge branch 'master' of github.com:r888888888/danbooru 2018-04-26 15:30:14 -07:00
Albert Yi
eddc789df2 fix js bugs 2018-04-26 15:01:57 -07:00
Albert Yi
95ab227b09 upgrade jquery-ui to 1.12, move to cdn 2018-04-26 14:49:33 -07:00
evazion
ed2b89a947 post tooltips: temp fix for jquery-ui 1.11 incompatibility.
ref: https://github.com/r888888888/danbooru/pull/3666#issuecomment-384775144
2018-04-26 15:49:14 -05:00
Albert Yi
990d625ae3 reset unread dmail count when using mark all as read (#3574) 2018-04-26 11:47:07 -07:00
Albert Yi
9aafc344fa Merge pull request #3666 from evazion/fix-3664
Fix #3664: Highlight non-gentags in post tooltip
2018-04-26 11:40:59 -07:00
Albert Yi
8b98e9e009 additional tests to look for causes of incorrect post count on pools (#3667) 2018-04-26 11:14:01 -07:00