[cleanup] Fixed title bars, toolbars in all pages, added default background

This commit is contained in:
Rushabh Mehta
2013-11-13 16:55:38 +05:30
parent 09391e14ad
commit 4f642e7670
37 changed files with 82 additions and 82 deletions

View File

@@ -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");
}

View File

@@ -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);