mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	settings: Remove save changes button from "UI settings" section.
Fixes: #6330.
This commit is contained in:
		@@ -5,7 +5,7 @@ var exports = {};
 | 
			
		||||
exports.set_up = function () {
 | 
			
		||||
    $("#ui-settings-status").hide();
 | 
			
		||||
 | 
			
		||||
    $("#ui-settings").on("click", "input[name='change_settings']", function (e) {
 | 
			
		||||
    $("#ui-settings .change-setting").change(function (e) {
 | 
			
		||||
        e.preventDefault();
 | 
			
		||||
        var labs_updates = {};
 | 
			
		||||
        _.each(["autoscroll_forever", "default_desktop_notifications"],
 | 
			
		||||
@@ -33,7 +33,6 @@ exports.set_up = function () {
 | 
			
		||||
                },
 | 
			
		||||
            });
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
return exports;
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@
 | 
			
		||||
        <div class="side-padded-container">
 | 
			
		||||
            <div class="input-group">
 | 
			
		||||
                <label class="checkbox">
 | 
			
		||||
                    <input type="checkbox" class="inline-block" name="autoscroll_forever" id="autoscroll_forever"
 | 
			
		||||
                    <input type="checkbox" class="inline-block change-setting" name="autoscroll_forever" id="autoscroll_forever"
 | 
			
		||||
                           {{#if page_params.autoscroll_forever}}
 | 
			
		||||
                           checked="checked"
 | 
			
		||||
                         {{/if}} />
 | 
			
		||||
@@ -20,7 +20,7 @@
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="input-group">
 | 
			
		||||
                <label class="checkbox">
 | 
			
		||||
                    <input type="checkbox" class="inline-block" name="default_desktop_notifications" id="default_desktop_notifications"
 | 
			
		||||
                    <input type="checkbox" class="inline-block change-setting" name="default_desktop_notifications" id="default_desktop_notifications"
 | 
			
		||||
                           {{#if page_params.default_desktop_notifications}}
 | 
			
		||||
                           checked="checked"
 | 
			
		||||
                        {{/if}} />
 | 
			
		||||
@@ -31,11 +31,5 @@
 | 
			
		||||
                </label>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <div class="input-group no-border">
 | 
			
		||||
            <div class="ui-submission">
 | 
			
		||||
                <input type="submit" name="change_settings" value="{{t 'Save changes' }}" class="button rounded sea-green" />
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </form>
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user