[minor] fixes
This commit is contained in:
parent
d69d83b5f9
commit
e54b0d487b
2 changed files with 3 additions and 3 deletions
|
|
@ -238,7 +238,7 @@ class DatabaseQuery(object):
|
|||
|
||||
elif f[2] == "like" or (isinstance(f[3], basestring) and
|
||||
(not df or df.fieldtype not in ["Float", "Int", "Currency", "Percent", "Check"])):
|
||||
if f[2] == "like":
|
||||
if f[2] == "like" and isinstance(f[3], basestring):
|
||||
# because "like" uses backslash (\) for escaping
|
||||
f[3] = f[3].replace("\\", "\\\\")
|
||||
|
||||
|
|
|
|||
|
|
@ -220,8 +220,8 @@ frappe.ui.form.Toolbar = Class.extend({
|
|||
} else {
|
||||
var click = {
|
||||
"Save": function() {
|
||||
if(!frappe.dom.is_touchscreen() && Math.random() < 0.30) {
|
||||
show_alert(__("You can also use Ctrl+S to Save"));
|
||||
if(!frappe.dom.is_touchscreen() && Math.random() < 0.25) {
|
||||
show_alert(__("ProTip: You can also use Ctrl+S to Save"));
|
||||
}
|
||||
me.frm.save('Save', null, this);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue