Closed (fixed)
Project:
BUEditor
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2011 at 07:57 UTC
Updated:
27 Mar 2011 at 02:21 UTC
I created a BUEditor save button as a replacement button for the standard save button in the comment form (with the help from a support request in this module issue page). I am using the following code:
js: $('#ajax-comments-submit', E.textArea.form).click();
You can probably tell from the code that I am using the ajax_comments module. The ajax_comments module shows a nice progress bar during comment save. But upon clicking the save button I don't get the progress bar. Although the button works as expected. Is there a way to solve the problem?
Comments
Comment #1
ufku commentedWhen you mouse-click a button, it's not just the click event that fires. Mousedown, mouseup and click events are triggered in order. So, in order to mimic mouse click you should use:
js: $('#ajax-comments-submit', E.textArea.form).mousedown().mouseup().click();Comment #2
udvranto commentedLooking at the ajax_comments.js I used the following. Still didn't work:
Comment #3
udvranto commentedufku,
Thanks very much! That did the trick!!
Comment #4
ufku commented