diff options
-rw-r--r-- | static/panes/editor.js | 8 | ||||
-rw-r--r-- | static/settings.js | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/static/panes/editor.js b/static/panes/editor.js index 4d21dc494..5de88ef2c 100644 --- a/static/panes/editor.js +++ b/static/panes/editor.js @@ -501,16 +501,16 @@ Editor.prototype.handleCtrlS = function (event) { } } else { console.log(typeof(this.settings.enableCtrlS)); - if (this.settings.enableCtrlS === "true") { + if (this.settings.enableCtrlS === 'true') { loadSave.setMinimalOptions(this.getSource(), this.currentLanguage); if (!loadSave.onSaveToFile(this.id)) { this.showLoadSaver(); } - } else if (this.settings.enableCtrlS === "false") { + } else if (this.settings.enableCtrlS === 'false') { this.eventHub.emit('displaySharingPopover'); - } else if (this.settings.enableCtrlS === "2") { + } else if (this.settings.enableCtrlS === '2') { this.runFormatDocumentAction(); - } else if (this.settings.enableCtrlS === "3") { + } else if (this.settings.enableCtrlS === '3') { this.handleCtrlSDoNothing(); } } diff --git a/static/settings.js b/static/settings.js index fa0a2eb00..4d3b8424b 100644 --- a/static/settings.js +++ b/static/settings.js @@ -256,10 +256,10 @@ function setupSettings(root, settings, onChange, subLangId) { add(root.find('.tabWidth'), 'tabWidth', 4, Numeric, {min: 1, max: 80}); // note: this is the ctrl+s "Save option" var actions = [ - {label: true, desc: "Save To Local File"}, - {label: false, desc: "Create Short Link"}, - {label: 2, desc: "Reformat code"}, - {label: 3, desc: "Do nothing"}, + {label: true, desc: 'Save To Local File'}, + {label: false, desc: 'Create Short Link'}, + {label: 2, desc: 'Reformat code'}, + {label: 3, desc: 'Do nothing'}, ]; add(root.find('.enableCtrlS'), 'enableCtrlS', true, Select, actions); add(root.find('.enableCtrlStree'), 'enableCtrlStree', true, Checkbox); |