mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-24 00:58:29 +00:00
[cleanup] Fixed title bars, toolbars in all pages, added default background
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
|
||||
cur_frm.cscript.refresh = function(doc, cdt, cdn) {
|
||||
cur_frm.cscript.set_root_readonly(doc);
|
||||
cur_frm.add_custom_button(wn._("Item Group Tree"), function() {
|
||||
cur_frm.appframe.add_button(wn._("Item Group Tree"), function() {
|
||||
wn.set_route("Sales Browser", "Item Group");
|
||||
})
|
||||
}, "icon-sitemap")
|
||||
|
||||
if(!doc.__islocal && doc.show_in_website) {
|
||||
cur_frm.add_custom_button("View In Website", function() {
|
||||
cur_frm.appframe.add_button("View In Website", function() {
|
||||
window.open(doc.page_name);
|
||||
}, "icon-globe");
|
||||
}
|
||||
|
||||
@@ -10,9 +10,9 @@ wn.pages['Setup'].onload = function(wrapper) {
|
||||
});
|
||||
|
||||
wrapper.appframe.add_module_icon("Setup");
|
||||
wrapper.appframe.add_button(wn._("Refresh"), function() {
|
||||
wrapper.appframe.set_title_right(wn._("Refresh"), function() {
|
||||
wn.pages.Setup.make(wrapper);
|
||||
}, "icon-refresh");
|
||||
});
|
||||
|
||||
wn.pages.Setup.make(wrapper);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user