You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to be able to add an 'onclick' event to notifications, which I accomplished by adding this code to the Gritter.add function (around line 180)
//Bind onclick handler if provided in params if($.isFunction(params.onclick)){$(item).bind('click',function(event){params.onclick.call(event,item);});};// Clicking (X) makes the perdy thing close$(item).find('.gritter-close').click(function(e){Gritter.removeSpecific(number,{},null,true);//make sure that onclick function of item is not callede.preventDefault();returnfalse;});
I had to modify the close button function, because clicking the close button would cause annoying event bubbling...
The text was updated successfully, but these errors were encountered:
I wanted to be able to add an 'onclick' event to notifications, which I accomplished by adding this code to the Gritter.add function (around line 180)
I had to modify the close button function, because clicking the close button would cause annoying event bubbling...
The text was updated successfully, but these errors were encountered: