Open corpulent opened 11 years ago
I would say the shown code line is a bug. Instead of monkeypatching the link behavior it should trigger the links click functionality.
If i find the time, I will write a patch for that.
I totally agree that my 'fix' is a bug, I just wanted to point out that there is an event bound to the link. Looking forward to your patch.
Well, not only your fix but also my original implementation.
Hi, I am trying to add an ajaxed link to the
modal-footer
to return the user to previous page of the flow. Like so:However, its not executing the bound click event of the 'Previous' button, it redirects the whole page instead. Should I be using another element to get the previous page? Like a button?
My quick fix for this is to check if there is an event bound to the button or link in modal-footer like so:
Replace https://github.com/Nikku/jquery-bootstrap-scripting/blob/master/lib/jquery.dialog2.js#L208
with
What do you guys think? Should I also check for
click
event as well? This fix is working for me.