[theme] [fix] make theme pickable
This commit is contained in:
parent
3a3db0afe5
commit
9907cd7d9e
3 changed files with 5 additions and 5 deletions
|
|
@ -512,7 +512,9 @@ frappe.ui.form.ControlDate = frappe.ui.form.ControlData.extend({
|
|||
},
|
||||
validate: function(value, callback) {
|
||||
if(!dateutil.validate(value)) {
|
||||
msgprint (__("Date must be in format: {0}", [sys_defaults.date_format || "yyyy-mm-dd"]));
|
||||
if(value) {
|
||||
msgprint (__("Date must be in format: {0}", [sys_defaults.date_format || "yyyy-mm-dd"]));
|
||||
}
|
||||
callback("");
|
||||
return;
|
||||
}
|
||||
|
|
@ -970,7 +972,7 @@ frappe.ui.form.ControlLink = frappe.ui.form.ControlData.extend({
|
|||
|
||||
if(this.df.get_route_options_for_new_doc) {
|
||||
frappe.route_options = this.df.get_route_options_for_new_doc(this);
|
||||
}
|
||||
}ust
|
||||
|
||||
if(this.frm) {
|
||||
this.frm.new_doc(doctype, this, new_options);
|
||||
|
|
|
|||
|
|
@ -74,6 +74,6 @@ a:active {
|
|||
border-color: {{ theme.border_color }};
|
||||
}
|
||||
|
||||
{% if theme.css -%} {% include theme.css %} {%- endif %}
|
||||
{% if theme.css -%} {{ theme.css }} {%- endif %}
|
||||
|
||||
{%- endif -%}
|
||||
|
|
|
|||
|
|
@ -52,5 +52,3 @@ def prepare(theme):
|
|||
theme.webfont_import += "\n" + "\n".join(webfont_import)
|
||||
for wfimport in webfont_import:
|
||||
theme.css = theme.css.replace(wfimport, "")
|
||||
|
||||
theme.css = frappe.get_jenv().from_string(theme.css)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue