mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	tweaking app.alert so that on regular fadeout (after timeout expiry), the alert is removed from the DOM
This commit is contained in:
		| @@ -71,14 +71,18 @@ var socket, | ||||
|  | ||||
| 		if (params.timeout) { | ||||
| 			setTimeout(function() { | ||||
| 				jQuery(div).fadeOut(1000); | ||||
| 				jQuery(div).fadeOut(1000, function() { | ||||
| 					this.remove(); | ||||
| 				}); | ||||
| 			}, params.timeout) | ||||
| 		} | ||||
|  | ||||
| 		if (params.clickfn) { | ||||
| 			div.onclick = function() { | ||||
| 				params.clickfn(); | ||||
| 				jQuery(div).fadeOut(500); | ||||
| 				jQuery(div).fadeOut(500, function() { | ||||
| 					this.remove(); | ||||
| 				}); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -116,7 +116,6 @@ var	config = require('../config.js'), | ||||
| 				} | ||||
| 				 | ||||
| 				User.getUserField(uid, 'password', function(user_password) { | ||||
| 					 | ||||
| 					bcrypt.compare(password, user_password, function(err, res) { | ||||
| 						if (res === true) { | ||||
| 							next({ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user