added shortcuts
This commit is contained in:
parent
224714c248
commit
cebb02753c
@ -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;
|
||||||
|
});
|
||||||
@ -14,9 +14,9 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
wn.require('lib/js/lib/jscolor/jscolor.js');
|
|
||||||
|
|
||||||
cur_frm.cscript.onload_post_render = function() {
|
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';
|
cur_frm.fields_dict.background_color.input.className = 'color';
|
||||||
jscolor.bind();
|
jscolor.bind();
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user