Prevent default action for help links.

fix #370
This commit is contained in:
Antoine Nguyen
2013-02-06 16:46:12 +01:00
parent 22412de7be
commit 880550a5a3
+2 -2
View File
@@ -40,7 +40,7 @@ function modalbox(e, css, defhref, defcb, defclosecb) {
}
var $div = $('<div id="modalbox" class="modal" >' + data + '</div>')
.one('shown', function() {
$(".help").popover();
$(".help").popover().click(function(e) {e.preventDefault();});
if (modalcb != undefined) {
if (typeof modalcb === "function") modalcb(); else eval(modalcb + '()');
}
@@ -242,5 +242,5 @@ $(document).ready(function() {
$(document).on('click', 'a[data-toggle="ajaxmodal"]', modalbox);
$(document).on('click', 'a[data-toggle="ajaxmodal-autowidth"]', modalbox_autowidth);
$(document).on('click', '.activator', activate_widget);
$(".help").popover();
$(".help").popover().click(function(e) {e.preventDefault();});
});