In your javascript if you return false; instead of having event.preventDefault(); it will stop any alerts or confirm messages that you have attached to the link via the rails data-confirm method.
Achievements
10
Karma
0
Total ProTip Views
Charity
Fork and commit to someone's open source project in need
In your javascript if you
return false;
instead of havingevent.preventDefault();
it will stop any alerts or confirm messages that you have attached to the link via the rails data-confirm method.