diff --git a/startup/startup.js b/startup/startup.js index 9a6a52625d..90f284e837 100644 --- a/startup/startup.js +++ b/startup/startup.js @@ -195,3 +195,19 @@ erpnext.hide_naming_series = function() { } } } + +Mousetrap.bind(["command+g", "ctrl+g"], function() { + wn.ui.toolbar.search.show(); + return false; +}); + +Mousetrap.bind(["command+s", "ctrl+s"], function() { + if(cur_frm) + cur_frm.save(); + return false; +}); + +Mousetrap.bind(["command+n", "ctrl+n"], function() { + wn.ui.toolbar.new_dialog.show(); + return false; +}); \ No newline at end of file diff --git a/website/doctype/style_settings/style_settings.js b/website/doctype/style_settings/style_settings.js index 0d0bf9e6ec..54091a38f2 100644 --- a/website/doctype/style_settings/style_settings.js +++ b/website/doctype/style_settings/style_settings.js @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -wn.require('lib/js/lib/jscolor/jscolor.js'); cur_frm.cscript.onload_post_render = function() { + wn.require('lib/public/js/lib/jscolor/jscolor.js'); cur_frm.fields_dict.background_color.input.className = 'color'; jscolor.bind(); } \ No newline at end of file