mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	fix: refreshing settings page on save if language changed
This commit is contained in:
		| @@ -89,7 +89,6 @@ | |||||||
| 	"digest_daily": "Daily", | 	"digest_daily": "Daily", | ||||||
| 	"digest_weekly": "Weekly", | 	"digest_weekly": "Weekly", | ||||||
| 	"digest_monthly": "Monthly", | 	"digest_monthly": "Monthly", | ||||||
| 	"settings-require-reload": "Some setting changes require a reload. Click here to reload the page.", |  | ||||||
|  |  | ||||||
| 	"has_no_follower": "This user doesn't have any followers :(", | 	"has_no_follower": "This user doesn't have any followers :(", | ||||||
| 	"follows_no_one": "This user isn't following anyone :(", | 	"follows_no_one": "This user isn't following anyone :(", | ||||||
|   | |||||||
| @@ -96,15 +96,7 @@ define('forum/account/settings', ['forum/account/header', 'components', 'sounds' | |||||||
| 			sounds.loadMap(); | 			sounds.loadMap(); | ||||||
|  |  | ||||||
| 			if (requireReload && parseInt(app.user.uid, 10) === parseInt(ajaxify.data.theirid, 10)) { | 			if (requireReload && parseInt(app.user.uid, 10) === parseInt(ajaxify.data.theirid, 10)) { | ||||||
| 				app.alert({ | 				ajaxify.refresh(); | ||||||
| 					id: 'setting-change', |  | ||||||
| 					message: '[[user:settings-require-reload]]', |  | ||||||
| 					type: 'warning', |  | ||||||
| 					timeout: 5000, |  | ||||||
| 					clickfn: function () { |  | ||||||
| 						ajaxify.refresh(); |  | ||||||
| 					}, |  | ||||||
| 				}); |  | ||||||
| 			} | 			} | ||||||
| 		}); | 		}); | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user