SP.UI.Notify.addNotification
return id of the newly created notification (DOM element). It also attaches click handler on child div
element, what you can do is unbind click event by replacing child div with copy:
pure js:
var notifId = SP.UI.Notify.addNotification("Some process is running...", true);
var old_element = document.querySelector("#" + notifId + " > div");
var new_element = old_element.cloneNode(true);
old_element.parentNode.replaceChild(new_element, old_element);
or with jquery:
var notifId = SP.UI.Notify.addNotification("Some process is running...", true);
jQuery("#" + notifId + " > div").replaceWith(jQuery("#" + notifId + " > div").clone());