Commit Graph

62 Commits

Author SHA1 Message Date
Albert Yi
4fe7f5eff9 restyling 2019-01-23 17:40:58 -08:00
evazion
b24ccb0595 tag edit dialog: fix clicking button before handler is bound.
https://danbooru.donmai.us/forum_topics/9127?page=265#forum_post_153180:

> I'm not sure how to reproduce this, but sometimes on the upload page
> when I click the button to pop out the tag box, the screen scrolls up to
> the picture but the box doesn't pop out, and I have to scroll back down
> and click it again

https://danbooru.donmai.us/forum_topics/9127?page=266#forum_post_153183:

> Yes, this was brought up by Unbreakable on Discord a while back. It's
> due to the fact that the event handler that pops out the dialog box has
> not yet been bound by the time you click it. Since that clickable
> control has an empty anchor link of "#" which goes nowhere, it therefore
> redirects the user to the top of the page.
2018-12-18 19:10:23 -06:00
evazion
79ec053cef Fix #4009: Tag list is empty when editing tags, causing destructive changes. 2018-12-12 13:02:04 -06:00
Albert Yi
3893926048 add dynamic tag counts on upload form 2018-12-10 17:51:28 -08:00
evazion
39374a70d3 posts/show: rename tags params to q in various places.
Fixup for 011a6f1f7.
2018-10-30 11:32:07 -05:00
evazion
6d293dfde2 related tags: fix style issues. 2018-10-16 13:09:22 -05:00
evazion
6223f89a99 related tags: refactor /related_tags.js to avoid updating unchanged columns.
Refactor the /related_tags.js call so that when the "Related tags"
button is clicked, it only replaces the columns that actually changed,
not the entire related tags section.

This avoids rebuilding the Recent / Frequent / Translated Tags / Artist
columns every time the "Related tags" button is clicked.
2018-10-15 18:41:32 -05:00
evazion
5a05961bde related tags: factor partials out from post, upload edit forms. 2018-10-12 21:18:15 -05:00
evazion
739bb1270c TagSetPresenter: refactor tag string for post edit form.
Move PostPresenter#categorized_tag_groups to TagSetPresenter#split_tag_list_text.

This allows split_tag_list_text to reuse the same set of tags already
fetched by the tag set presenter for the sidebar.

This avoids a memcache call to get the tag categories when rendering the
tag string for the post edit form.
2018-09-30 21:52:24 -05:00
evazion
10ca4dd3ad artists: replace artist finder with fetch source data.
* On posts, automatically trigger "Fetch source data" when clicking the
  Edit tab, instead of triggering the artist finder button. This way we
  find both the artist and the translated tags in one ajax call.

* Remove the "Artist" finder button next to the source field. This isn't
  necessary given that "Fetch source data" finds the artist itself.

* Remove the /artists/finder.json API endpoint. This is no longer used
  after removing the "Artist" finder button.
2018-09-11 20:09:25 -05:00
evazion
bbaadda1e3 Convert keyboard shortcuts to use data-shortcut. 2018-08-12 12:09:58 -05:00
Albert Yi
cd88a8df9f fixes #3620 2018-04-12 13:00:48 -07:00
r888888888
4d279cd16a Revert "hide embedded notes option"
This reverts commit b361809489.
2017-12-15 13:53:03 -08: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
6838901aac Moved non-config tag category info to its own class 2017-11-07 16:21:29 -08:00
BrokenEagle
1de8fd2bd6 Moved tag logic for Javascript to config file 2017-11-07 10:58:40 -08:00
r888888888
0985f929cc style buttons for upload/post edit pages 2017-09-14 16:56:40 -07:00
r888888888
b361809489 hide embedded notes option 2017-09-14 15:50:57 -07:00
evazion
3ecee91861 Fix #3061: Add "General" button for related tags on new/edit posts. 2017-05-26 12:49:59 -05:00
evazion
4631262374 Fix broken tag autocomplete on multiple pages.
Mark all tag <input>s with a `data-autocomplete` attribute, instead of
hardcoding a list of html IDs to autocomplete in javascript.

This way should be less error prone. It fixes autocomplete in several places:

* Autocomplete for the search box on /posts didn't work in the
  responsive layout. This was because /posts has two search boxes that
  both have the id `tags`: one in the normal sidebar, and one in the
  responsive tag list. $("#tags") only initialized autocomplete on the
  first one.

* Autocomplete didn't work on the aliases or implications pages. This
  was due to selecting the wrong html ids.
2017-04-22 15:24:03 -05:00
Albert Yi
7aab50f726 remove old iqdb code 2016-12-02 13:21:56 -08:00
Type-kun
a7d553038f Add "disable-with" to most edit forms (should fix #2264) 2016-08-30 22:54:38 +05:00
Toks
f3e4aa51f0 preserve favgroup_id 2015-06-25 10:45:26 -04:00
r888888888
ebe0c2e019 expose embed notes option 2015-02-09 18:26:55 -08:00
r888888888
dc0c03dce7 expose embedded note options to builders only 2015-02-02 20:10:49 -08:00
r888888888
9e505a0b84 * add new bit_flags column to posts
* conditionally enable embedded notes on a per post basis
2015-01-27 17:11:51 -08:00
Toks
9d47d7f7dd Support source fetching and translated tags while editing posts
(manual only)
2014-06-07 14:10:02 -04:00
r888888888
7512ca4b9c fixes #2130 2014-05-22 14:40:32 -07:00
Toks
cfc9f36b5e fixes #1461 2013-08-29 23:33:09 -04:00
Toks
ab4196a0e3 Rename duplicate dom id; fixes #1823
closes #1935
2013-08-14 13:13:14 -04:00
Toks
f4864b42c6 #1875: Add support for dialog when uploading 2013-07-27 12:25:21 -04:00
Toks
7b522f09c1 #1875: Update reltags
* Hide reltags by default when opening dialog
* Swap link arrows
* Display reltags when clicking a button
2013-07-23 22:50:16 -04:00
Toks
9815ace650 #1875: Change detach icon 2013-07-23 14:38:28 -04:00
Toks
e58365f860 Add basic detachable post editing dialog
#1875
2013-07-23 10:54:06 -04:00
Toks
b485f0c923 fix stray space 2013-05-05 21:06:18 -04:00
r888888888
c9a95a59ae fixes #1165 2013-04-18 00:10:34 -07:00
Toks
2860c4e528 possible fix for #1251 2013-04-12 08:23:07 -04:00
Toks
4006c9243e fixes #1062 2013-04-09 14:08:19 -04:00
Toks
87330aee69 fixes #1233 2013-04-08 21:41:14 -04:00
Toks
b6513b64c8 fixes #1074 2013-04-03 14:57:36 -04:00
albert
78900c4d38 revamped artist reltags, fixes #1094 2013-03-25 22:13:27 -04:00
albert
0495d5c338 fixes #874 2013-03-19 22:48:13 -07:00
小太
1a03a86592 Kill trailing whitespace in erb files 2013-03-19 23:11:58 +11:00
albert
c4c9b7cb7f addresses #832 2013-03-11 13:45:49 -04:00
albert
7125065984 fixes #807 2013-03-09 11:44:12 -05:00
albert
a98af2f19a fix post set bug, fixes #768 2013-03-05 19:45:27 -05:00
albert
3621edd357 fixes #715 2013-03-05 17:53:59 -05:00
albert
7c4e933bea potential fix for #737 2013-03-03 15:51:57 -05:00
albert
ccc725a631 layout changes 2013-02-23 20:48:35 -05:00
albert
402f13e202 fix similar button for post/show 2013-02-23 11:37:07 -05:00