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.
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
<span class="options">
|
||||
<i id="face" class="fas"></i>
|
||||
<span class="count"></span>
|
||||
<a href="#"><i id="open-edit-dialog" class="fas fa-arrows-alt" title="detach" data-shortcut="shift+e"></i></a>
|
||||
<a href="javascript:void(0)"><i id="open-edit-dialog" class="fas fa-arrows-alt" title="detach" data-shortcut="shift+e"></i></a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
<span class="options">
|
||||
<i id="face" class="fas"></i>
|
||||
<span class="count"></span>
|
||||
<a href="#"><i id="open-edit-dialog" class="fas fa-arrows-alt" title="detach" data-shortcut="shift+e"></i></a>
|
||||
<a href="javascript:void(0)"><i id="open-edit-dialog" class="fas fa-arrows-alt" title="detach" data-shortcut="shift+e"></i></a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user