Use AJAX button click for cmd-s hotkey. Fixes 1356 (#1361)

This commit is contained in:
Dawa Ometto
2018-12-28 23:40:32 +01:00
committed by GitHub
parent 2aea55a92c
commit b76a250596
@@ -83,8 +83,8 @@
editor.commands.addCommand({
name: "saveContents",
bindKey: {win: "Ctrl-s", mac: "Command-s"},
exec: function(editor) {
$('#gollum-editor form[name="gollum-editor"]').submit();
exec: function() {
$("#gollum-editor-submit").trigger("click");
}
});
});