Commit Graph

69 Commits

Author SHA1 Message Date
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
Toks
3323f4e251 Remove inaccurate artist record link
closes #1223
2013-08-08 14:11:19 -04:00
r888888888
e4354ed0fd fixes #1921 2013-08-07 13:02:11 -07:00
Toks
b7b00f53b4 semicolons, semicolons everywhere 2013-06-19 20:08:03 -04:00
r888888888
1ce24dd7c0 fixes #1774 2013-06-19 14:29:31 -07:00
r888888888
cf74b592cd fixes #1773 2013-06-19 14:04:27 -07:00
Type-kun
72922e26f3 Update uploads.js
fixes #1358
2013-04-17 13:29:51 +06:00
albert
e305f8e501 fixes #1154 2013-03-31 22:16:31 -04:00
albert
3a91636039 fixes #991 2013-03-19 23:56:40 -07:00
小太
c107f96cec Kill trailing whitespaces in javascript files 2013-03-19 23:09:22 +11:00
albert
d8143d0b41 fixes #930 2013-03-18 22:11:54 -07:00
albert
c4c9b7cb7f addresses #832 2013-03-11 13:45:49 -04:00