settings: Add option for fixed/fluid width.

This adds a new option for "fluid width" under `Display settings` section
of SETTINGS/DISPLAY SETTINGS tab.

Fixes: #11844.
This commit is contained in:
Pragati Agrawal
2019-04-16 22:16:17 +05:30
committed by Tim Abbott
parent 389c56e88d
commit a838de63d8
10 changed files with 66 additions and 4 deletions

View File

@@ -78,6 +78,11 @@ exports.set_up = function () {
change_display_setting(data, '#display-settings-status');
});
$('#fluid_layout_width').change(function () {
var data = {fluid_layout_width: JSON.stringify(this.checked)};
change_display_setting(data, '#display-settings-status');
});
$("#night_mode").change(function () {
exports.set_night_mode(this.checked);
});