settings: Remove save changes button from "UI settings" section.

Fixes: #6330.
This commit is contained in:
Anupam-dagar 2017-09-09 20:38:13 +00:00 committed by Tim Abbott
parent 63bbbba5aa
commit f82c5e9626
2 changed files with 24 additions and 31 deletions

View File

@ -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;

View File

@ -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>