mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
fix to blog and wnf backup does not backup files
This commit is contained in:
@@ -34,9 +34,9 @@ h1, h2, h3, h4, h5 {
|
|||||||
font-family: '{{ doc.google_web_font_for_heading or doc.heading_font }}', Arial, 'Helvetica Neue' !important;
|
font-family: '{{ doc.google_web_font_for_heading or doc.heading_font }}', Arial, 'Helvetica Neue' !important;
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if doc.heading_text_as %}
|
{% if doc.heading_text_style %}
|
||||||
h1, h2, h3, h4, h5 {
|
h1, h2, h3, h4, h5 {
|
||||||
text-transform: {{ doc.heading_text_as }};
|
text-transform: {{ doc.heading_text_style }};
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class DocType:
|
|||||||
from webnotes.sessions import clear_cache
|
from webnotes.sessions import clear_cache
|
||||||
clear_cache('Guest')
|
clear_cache('Guest')
|
||||||
|
|
||||||
for f in ["small_font_size", "at_import"]:
|
for f in ["small_font_size", "at_import", "heading_text_style"]:
|
||||||
if f in self.doc.fields:
|
if f in self.doc.fields:
|
||||||
del self.doc.fields[f]
|
del self.doc.fields[f]
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ class DocType:
|
|||||||
fonts = list(set(fonts))
|
fonts = list(set(fonts))
|
||||||
|
|
||||||
if self.doc.heading_text_as:
|
if self.doc.heading_text_as:
|
||||||
self.doc.heading_text_as = {
|
self.doc.heading_text_style = {
|
||||||
"UPPERCASE": "uppercase",
|
"UPPERCASE": "uppercase",
|
||||||
"Title Case":"capitalize",
|
"Title Case":"capitalize",
|
||||||
"lowercase": "lowercase"
|
"lowercase": "lowercase"
|
||||||
@@ -68,7 +68,7 @@ class DocType:
|
|||||||
|
|
||||||
self.doc.at_import = ""
|
self.doc.at_import = ""
|
||||||
for f in fonts:
|
for f in fonts:
|
||||||
self.doc.at_import += "\n@import url(http://fonts.googleapis.com/css?family=%s);" % f.replace(" ", "+")
|
self.doc.at_import += "\n@import url(http://fonts.googleapis.com/css?family=%s:400,700);" % f.replace(" ", "+")
|
||||||
|
|
||||||
|
|
||||||
def on_update(self):
|
def on_update(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user