ctrl+s keyboard shortcut in svbtle

Mac
open the console cmd + option + J

$(window).on('keydown', function (event) {
    if (event.metaKey && event.which === 83) {
        event.preventDefault();
        $('.save_button a').click();
    }
});

close the console

Linux
open the console ctrl + shift + J

$(window).on('keydown', function (event) {
    if (event.ctrlKey && event.which === 83) {
        event.preventDefault();
        $('.save_button a').click();
    }
});

close the console

 
1
Kudos
 
1
Kudos

Now read this

How to Structure and Render Views in Backbone

tl;dr Limited coupling between parent and child views is accomplished by making child views responsible for rendering their own content. Parent views communicate with child views by triggering collection events. Memory leaks are avoided... Continue →