Чтобы предотвратить появление алерта с сообщением об ошибки использовать:
(function ($) {
Drupal.behaviors.disableAlerts = {
attach: function(context, settings) {
window.alert = function(text) {
if(typeof console != "undefined") {
console.error('Error: ' + text);
}
return true;
};
}
};
}(jQuery));
- Log in to post comments