mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	js: Use ES6 object literal shorthand syntax.
Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		@@ -39,9 +39,9 @@ exports.create_ajax_request = function (
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    $.post({
 | 
			
		||||
        url: url,
 | 
			
		||||
        data: data,
 | 
			
		||||
        success: function () {
 | 
			
		||||
        url,
 | 
			
		||||
        data,
 | 
			
		||||
        success() {
 | 
			
		||||
            $(form_loading).hide();
 | 
			
		||||
            $(form_error).hide();
 | 
			
		||||
            $(form_success).show();
 | 
			
		||||
@@ -54,7 +54,7 @@ exports.create_ajax_request = function (
 | 
			
		||||
            }
 | 
			
		||||
            window.location.replace(redirect_to);
 | 
			
		||||
        },
 | 
			
		||||
        error: function (xhr) {
 | 
			
		||||
        error(xhr) {
 | 
			
		||||
            $(form_loading).hide();
 | 
			
		||||
            $(form_error).show().text(JSON.parse(xhr.responseText).msg);
 | 
			
		||||
            $(form_input_section).show();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user