kopia lustrzana https://github.com/wagtail/wagtail
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
rodzic
aa9025c798
commit
751aceb261
|
@ -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;
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue