[minor] don't give save tip everytime

This commit is contained in:
Rushabh Mehta 2015-07-29 10:56:36 +05:30
parent 6985d4127e
commit f6bd49360c

View file

@ -220,7 +220,7 @@ frappe.ui.form.Toolbar = Class.extend({
} else {
var click = {
"Save": function() {
if(!frappe.dom.is_touchscreen()) {
if(!frappe.dom.is_touchscreen() && Math.random() < 0.30) {
show_alert(__("You can also use Ctrl+S to Save"));
}
me.frm.save('Save', null, this);