Commit Graph

1275 Commits

Author SHA1 Message Date
evazion
cf27de2ec9 Fix #3532: Make Enter key accept current tag during autocomplete.
Previously we patched the jqueryui-autocomplete library in order to
customize how the Tab and Enter keys behaved. Specifically, we wanted to
prevent the Tab key from moving the focus out of the tag input box, and
we wanted to prevent the Enter key from submitting the page when editing tags.

These things can achieved without patching the library by using
`event.preventDefault` and `event.stopImmediatePropagation` to prevent
other event handlers from running after these keys trigger the
`autocompleteselect` event.
2018-02-06 19:11:01 -06:00
Albert Yi
b03c8084a5 Merge pull request #3536 from BrokenEagle/fix-resize-with-user-setting
Fix the auto resize in desktop mode (ref: a95af95e)
2018-02-05 15:11:26 -08:00
BrokenEagle
31114b716a Fix the auto resize in desktop mode (ref: a95af95e) 2018-02-05 10:20:24 -08:00
BrokenEagle
d829ab3a00 Move all order logic to models
- Have a default order for each model
-- The overall default is ID DESC
- Allow for custom orderings
-- When comma-separated IDs are used
2018-01-29 11:42:53 -08:00
evazion
2833239fa0 Fix #3513: Missing rating error causes weird behavior in tag list on upload page.
Fix bug in the double submit prevention from #2789. Rather than
unbinding the enter key on submit, have the enter key click the submit
button instead. This avoids form submission when the submit button is disabled.
2018-01-21 11:55:24 -06:00
Albert Yi
7bb1a44cf3 Merge pull request #3488 from BrokenEagle/fix-autocomplete-metatags
Fix metatag handling in autocomplete
2018-01-03 10:28:50 -08:00
BrokenEagle
8f0e4398eb Fix metatags being treated as normal tags
- Add parent metatag defaults any and none
- Add missing user-based metatags to user source
- Remove all negative metatags since the prior code strips the '-'
2018-01-02 19:52:13 -08:00
Albert Yi
99c0c4ade6 Merge pull request #3479 from BrokenEagle/feat-add-iqdb-page
Initial add of IQDB standalone page
2018-01-02 10:29:27 -08:00
BrokenEagle
36ef8b4db3 Initial add of IQDB standalone page 2017-12-30 00:11:08 -08:00
Albert Yi
b315ee25bc Merge pull request #3471 from BrokenEagle/fix-controller-views
Various fixes for controller views
2017-12-28 11:18:44 -08:00
BrokenEagle
31d3215dad Fix page controller and action IDs
- Also fix affected CSS and JS files
2017-12-28 10:20:12 -08:00
r888888888
659eb62402 css tweaks 2017-12-26 16:06:16 -08:00
Albert Yi
2e0e8e1365 Merge pull request #3456 from BrokenEagle/fix-3455
Fix 3455: Convert tag category Javascript/CSS assets to ERB
2017-12-25 13:22:04 -08:00
BrokenEagle
d54b26c61d Convert tag category Javascript/CSS assets to ERB 2017-12-24 17:01:17 -08:00
BrokenEagle
7af1391902 Add autocomplete to wiki page versions 2017-12-21 10:25:16 -08:00
Albert Yi
b973e97648 Merge pull request #3434 from BrokenEagle/feat-copyright-other-wikis
Add character list wikis to copyright related tag response
2017-12-19 11:37:46 -08:00
BrokenEagle
118fd3baf4 Added list_of_* wikis to copyright related tag response 2017-12-18 15:36:08 -08:00
r888888888
a95af95eae move desktop mode to user pref 2017-12-15 13:52:25 -08:00
evazion
03cecf097e Factor out duplicated p.info CSS.
`p.info` is used to render "Updated by so-and-so 5 minutes ago" messages as fine print.
2017-12-15 11:14:12 -06:00
evazion
44f4befa5a autocomplete: add automatic typo correction.
If normal autocomplete fails to find any results, try doing a
fuzzy name search instead. This will correct simple typos.
2017-11-27 15:21:19 -06:00
evazion
8a0f600ac2 uploads: fix rating:S not being recognized by rating validator. 2017-11-26 11:54:13 -06:00
evazion
b62b16b5a2 Fix #3398: Show "(deleted)" next to topics in forum searches. 2017-11-24 15:58:45 -06:00
Albert Yi
4d6dc895d6 Merge pull request #3362 from BrokenEagle/feat-client-input-validation
Moved input existence validations to client (#3352)
2017-11-21 10:56:14 -08:00
evazion
05dea309b2 Fix search box rendering above tag edit dialog box (fix #3383). 2017-11-18 09:38:00 -06:00
r888888888
3c524aa5e6 fix bug with source::site 2017-11-17 17:26:33 -08:00
r888888888
c0ddf266fc move save search button to sidebar 2017-11-17 16:51:38 -08:00
r888888888
015db0467c addresses #3378 2017-11-17 14:05:12 -08:00
r888888888
31e36cf9eb remove unused mobile layouts 2017-11-17 13:59:14 -08:00
Albert Yi
18c8892a74 Merge pull request #3373 from evazion/fix-3368
Fix #3368: "Fetch source data" on /uploads/new doesn't fetch artist tag
2017-11-15 10:58:52 -08:00
evazion
514d4f9c2e /uploads/new: trigger Fetch source data automatically on source change.
On the uploads page, trigger `Fetch source data` automatically when the
user pastes an URL into the source field. Silently ignore invalid URLs
so that we don't trigger spurious errors when the user types in a source
manually.
2017-11-15 10:47:17 -06:00
evazion
60844845e4 Fetch source data: avoid redundant /artist/finder.json call.
On the uploads page, don't call /artist/finder.json to find the artist
on page load. Instead have `Fetch source data` fill in the artist using
the `artists` data returned by the `/source.json` call.
2017-11-15 10:45:36 -06:00
evazion
487fe9fb5d Fetch source data: list Danbooru artist tag; elim duplicated code.
* In the `Fetch source data` box, list the Danbooru artist tag(s) that
  were found beside the artist name.

* Unify `Fetch source data` code that was duplicated between the
  uploads page and the post show page.
2017-11-14 23:29:29 -06:00
BrokenEagle
63773fed6b Fixes #3366 2017-11-14 07:39:25 -08:00
r888888888
974a770bc6 fixes #3354 2017-11-13 16:41:01 -08:00
BrokenEagle
f91e11bb41 Moved input existence validations to client 2017-11-13 14:08:34 -08:00
Albert Yi
0674a03fb6 Merge pull request #3353 from BrokenEagle/feat-add-meta-tag-category
Migrated tag logic into config file and added fifth tag category meta
2017-11-13 11:44:15 -08:00
BrokenEagle
a591660b01 Fixed issue with $.localStorage returning non-keys in Firefox 2017-11-08 23:15:05 -08:00
BrokenEagle
c9c70bbaa4 Fixed bug with related tag script 2017-11-08 10:23:16 -08:00
BrokenEagle
7cb45fc8d3 Added fifth tag category meta 2017-11-07 10:58:42 -08:00
BrokenEagle
1de8fd2bd6 Moved tag logic for Javascript to config file 2017-11-07 10:58:40 -08:00
r888888888
2260d024b7 remove 'r' shortcut references for post listing 2017-10-30 14:51:05 -07:00
r888888888
32ff7de6d8 fixes #3346 2017-10-30 14:47:00 -07:00
BrokenEagle
7805404b47 Use timeout on tag box cursor calculation 2017-10-19 09:34:24 -07:00
Albert Yi
ff42b7b4a2 Merge pull request #3335 from BrokenEagle/fix-localstorage-pruning
Use current local storage size for pruning calculations
2017-10-18 16:13:59 -07:00
r888888888
da7cdcccfa handle js error in autocomplete 2017-10-18 14:45:37 -07:00
r888888888
83bfe3ee10 compromise for tag search autoexpansion #3310 2017-10-18 14:43:11 -07:00
Albert Yi
8e285a0e29 Merge pull request #3337 from BrokenEagle/fix-period-localstorage-saving
Substitute nonusable period in local storage saves
2017-10-18 13:10:01 -07:00
BrokenEagle
272617837c Substitute nonusable period in local storage saves 2017-10-17 22:54:13 -07:00
BrokenEagle
9945719517 Use current local storage size for pruning calculations 2017-10-17 18:40:19 -07:00
r888888888
8874b274ad remove ccs integration 2017-10-17 17:59:26 -07:00