From d70037e31737713eb8c50013723a9f85c0fb00e5 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 30 Mar 2016 15:07:54 -0400 Subject: cmd-s to save --- themes/okadmin/public/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'themes/okadmin/public/js') diff --git a/themes/okadmin/public/js/app.js b/themes/okadmin/public/js/app.js index 61fc8c8..e7f902d 100644 --- a/themes/okadmin/public/js/app.js +++ b/themes/okadmin/public/js/app.js @@ -284,6 +284,13 @@ var OKAdmin = function(){ $input.val(JSON.stringify(parsed)); }) }); + + $(window).on('keydown', function(e){ + if ( (e.ctrlKey || e.altKey || e.metaKey) && e.keyCode == 83 ) { + e.preventDefault() + $("#resource_form").submit() + } + }) } $(function(){ -- cgit v1.2.3-70-g09d2