mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Fix bot edit cancel button updating name anyway.
Apparently, the bot cancel button was incorrectly tagged with "submit", and thus ended up saving the changes anyway! Fixes #3412.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							9088c46e4c
						
					
				
				
					commit
					dd4ea5e56e
				
			@@ -682,6 +682,7 @@ function _setup_page() {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        reset_edit_bot.click(function (event) {
 | 
			
		||||
            form.find(".edit_bot_name").val(old_full_name);
 | 
			
		||||
            show_row_again();
 | 
			
		||||
            $(this).off(event);
 | 
			
		||||
        });
 | 
			
		||||
 
 | 
			
		||||
@@ -65,7 +65,7 @@
 | 
			
		||||
              <div class="control-group">
 | 
			
		||||
               <div class="controls">
 | 
			
		||||
                  <input type="submit" class="btn btn-primary edit_bot_button" value="{{t 'Save' }}" />
 | 
			
		||||
                  <button type="submit" class="btn btn-default reset_edit_bot">Cancel</button>
 | 
			
		||||
                  <button type="button" class="btn btn-default reset_edit_bot">Cancel</button>
 | 
			
		||||
               </div>
 | 
			
		||||
               <div class="edit_bot_spinner"></div>
 | 
			
		||||
              </div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user