r888888888
5aae4b649f
add xhr variant detection
2018-06-23 12:09:01 -07:00
r888888888
3ba5c6fb51
refactor iqdb endpoints
2018-06-23 10:59:04 -07:00
Albert Yi
56b40a0255
add iqdb preview
2018-06-22 16:41:13 -07:00
Albert Yi
0e6c358701
add drag and drop file uploads w/async processing
...
[skip ci]
2018-06-14 17:52:41 -07:00
Albert Yi
984ab98a40
potential fix for #3672
2018-05-10 11:20:15 -07: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
a49cb1c105
jquery: fix obsolete uses of success ( #3548 ).
2018-04-26 23:53:49 -05:00
evazion
5082a25321
uploads.js: fix call to $.unique (deprecated as of jQuery 3.0)
2018-04-18 19:02:17 -05:00
evazion
af9a09c2cb
Fix #3626 : Artist creation page doesn't autocomplete the name anymore.
2018-04-12 16:23:59 -05:00
Albert Yi
883b36ac2e
fixes #3620
2018-04-12 13:00:48 -07:00
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
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
evazion
8a0f600ac2
uploads: fix rating:S not being recognized by rating validator.
2017-11-26 11:54:13 -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
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
f91e11bb41
Moved input existence validations to client
2017-11-13 14:08:34 -08:00
evazion
a1c9f34027
Fix #1908 : Allow E shortcut to work on upload page.
2017-06-12 20:28:56 -05:00
evazion
fed23c0baa
fetch source data: fix gallery warning for non-pixiv galleries.
2017-06-06 23:03:07 -05:00
r888888888
3a49b3c54b
include normalized artist url in artist json
2017-05-30 12:01:18 -07:00
evazion
c68e68f3c2
/uploads/new: add show/hide commentary toggle button.
2017-05-13 00:18:52 -05:00
evazion
7a656f790d
/uploads/new: autopopulate commentary from /source.json.
2017-05-10 18:01:52 -05:00
r888888888
c4b5998e64
fixes #2692 : Rework bookmarklet preview
2017-03-21 15:41:20 -07: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
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
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
r888888888
ccd8c43718
fix image resizer on upload page
2016-04-27 16:21:40 -07: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
8c57476667
potential fix for #1375 : The preview image on the upload page is sometimes displayed at full size
2015-07-29 17:43:35 -07:00
r888888888
622f12cfec
fixes #2385
2015-05-21 12:45:09 -07:00
evazion
19b62c5f4b
Fix XSS in fetch source data javascript.
2014-10-28 20:58:58 -05: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
Toks
75cd8203f1
New artist link: add newlines to urls
2014-08-02 12:06:58 -04:00
Toks
a59e9b52e1
New artist link: remove incorrect name
2014-08-02 12:06:13 -04:00
Toks
3230ab8781
Add warning when Pixiv post is a gallery of multiple images
2014-06-13 16:33:38 -04:00
Toks
552bd377f3
Fix bug where failed iqdb query would be made
...
Query should only be made automatically when using bookmarklet
2014-06-11 22:53:12 -04:00
Toks
a2da2c1d44
#2130 : Fix similar button on upload page
2014-06-08 21:55:38 -04:00
Toks
9d47d7f7dd
Support source fetching and translated tags while editing posts
...
(manual only)
2014-06-07 14:10:02 -04:00
Toks
be5f946fab
whitespc
2014-05-29 23:13:17 -04:00
Toks
eb81f06eb2
merge translated tags branch
2014-05-29 23:11:34 -04:00
Toks
cfac5a11ed
#2164 : Add manual fetch link
2014-05-29 17:56:33 -04:00
r888888888
57ad234b90
fixes #2130
2014-05-23 14:15:19 -04:00
Toks
b18bb73f4b
Implentation for #2141
2014-05-22 20:07:15 -04:00
r888888888
9e2c664a41
fixes #2130
2014-05-05 17:59:54 -07:00
Toks
f8cf941a7f
Use normalized url for iqdb similar search
2014-04-30 21:44:03 -04:00
r888888888
16712b7d56
implement iqdb wrapper
2014-03-24 13:22:03 -07:00