mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-27 17:16:14 +01:00 
			
		
		
		
	feat: add action:alert.new, action:alert.update hooks
				
					
				
			This commit is contained in:
		| @@ -52,6 +52,8 @@ define('alerts', ['translator', 'components', 'benchpress'], function (translato | |||||||
| 							fadeOut(alert); | 							fadeOut(alert); | ||||||
| 						}); | 						}); | ||||||
| 				} | 				} | ||||||
|  | 				 | ||||||
|  | 				$(window).trigger('action:alert.new', { alert: alert, params: params }); | ||||||
| 			}); | 			}); | ||||||
| 		}); | 		}); | ||||||
| 	} | 	} | ||||||
| @@ -88,6 +90,8 @@ define('alerts', ['translator', 'components', 'benchpress'], function (translato | |||||||
| 					fadeOut(alert); | 					fadeOut(alert); | ||||||
| 				}); | 				}); | ||||||
| 		} | 		} | ||||||
|  | 		 | ||||||
|  | 		$(window).trigger('action:alert.update', { alert: alert, params: params }); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	function fadeOut(alert) { | 	function fadeOut(alert) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user