mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Allow alert words to be multi-word.
(imported from commit ccf8a387a25d079cf43ed335f6dc9debd70db75d)
This commit is contained in:
		@@ -56,11 +56,8 @@ $(function () {
 | 
			
		||||
 | 
			
		||||
    $('#word-alerts').on('keypress', '.edit-alert-word', function (event) {
 | 
			
		||||
        var key = event.which;
 | 
			
		||||
        // Disallow spaces (key code 32)
 | 
			
		||||
        // Handle enter as "add"
 | 
			
		||||
        if (key === 32) {
 | 
			
		||||
            event.preventDefault();
 | 
			
		||||
        } else if (key === 13) {
 | 
			
		||||
        // Handle enter (13) as "add".
 | 
			
		||||
        if (key === 13) {
 | 
			
		||||
            event.preventDefault();
 | 
			
		||||
 | 
			
		||||
            var word = $(event.target).val();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user