Remove now-unnecessary dirty form checks on save/preview shortcuts

Save is handled by the 'is this a form submission' check, and preview was probably
never needed at all (preview opens in a new window and does not unload the page,
unless there's a validation error, which is handled separately)
pull/2743/merge
Matt Westcott 2016-07-01 16:08:52 +01:00 zatwierdzone przez Karl Hobley
rodzic aa9025c798
commit 751aceb261
1 zmienionych plików z 0 dodań i 2 usunięć

Wyświetl plik

@ -333,13 +333,11 @@ function initCollapsibleBlocks() {
function initKeyboardShortcuts() {
Mousetrap.bind(['mod+p'], function(e) {
disableDirtyFormCheck();
$('.action-preview').trigger('click');
return false;
});
Mousetrap.bind(['mod+s'], function(e) {
disableDirtyFormCheck();
$('.action-save').trigger('click');
return false;
});