W
W
Way2014-12-27 23:36:09
DLE
Way, 2014-12-27 23:36:09

Modal window: How to fix when inserting an object?

Good afternoon, I recently redid the editor (This is a window where you edit the text before adding a comment or news) and there were no problems with the modal window (from dle), but today I connected google jquery and put the emoticon insertion function in the modal window, but when I click on the smiley The modal window rises to the top of the page and to see if you have inserted a smiley or not, you need to close the window and then only scroll to the editor's text area. In general, the question is how to fix the modal window so that it does not move up?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jlekapb, 2014-12-28
@YouTy6bl4

Apparently, when you click on the smiley, there is a transition along the anchor, once it is thrown to the top of the page.
If so, add to the click eventpreventDefault();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question