Fix: verify if jnotify plugin is active

This commit is contained in:
Regis Houssin 2011-05-04 16:44:03 +00:00
parent e2421c6cb1
commit ab8d73226b

View File

@ -112,7 +112,9 @@ llxHeader();
});
$( "div.paypal_link" ).click(function() {
var id_value = $(this).attr("id");
$.jnotify("<?php echo $langs->trans('PleaseBePatient'); ?>", 2000);
if ($.jnotify) {
$.jnotify("<?php echo $langs->trans('PleaseBePatient'); ?>", 2000);
}
$.get( "<?php echo DOL_URL_ROOT; ?>/paypal/ajaxtransactiondetails.php", {
transaction_id: id_value
},