[cleanup] Fixed title bars, toolbars in all pages, added default background
diff --git a/public/js/controllers/stock_controller.js b/public/js/controllers/stock_controller.js
index 01a73a2..feecc7b 100644
--- a/public/js/controllers/stock_controller.js
+++ b/public/js/controllers/stock_controller.js
@@ -7,7 +7,7 @@
show_stock_ledger: function() {
var me = this;
if(this.frm.doc.docstatus===1) {
- this.frm.add_custom_button(wn._("Stock Ledger"), function() {
+ this.frm.appframe.add_button(wn._("Stock Ledger"), function() {
wn.route_options = {
voucher_no: me.frm.doc.name,
from_date: me.frm.doc.posting_date,
@@ -22,7 +22,7 @@
show_general_ledger: function() {
var me = this;
if(this.frm.doc.docstatus===1 && cint(wn.defaults.get_default("auto_accounting_for_stock"))) {
- cur_frm.add_custom_button(wn._('Accounting Ledger'), function() {
+ cur_frm.appframe.add_button(wn._('Accounting Ledger'), function() {
wn.route_options = {
"voucher_no": me.frm.doc.name,
"from_date": me.frm.doc.posting_date,
diff --git a/public/js/stock_analytics.js b/public/js/stock_analytics.js
index 8cb6161..71ed809 100644
--- a/public/js/stock_analytics.js
+++ b/public/js/stock_analytics.js
@@ -65,7 +65,7 @@
{fieldtype:"Date", label: wn._("To Date")},
{fieldtype:"Select", label: wn._("Range"),
options:["Daily", "Weekly", "Monthly", "Quarterly", "Yearly"]},
- {fieldtype:"Button", label: wn._("Refresh"), icon:"icon-refresh icon-white", cssClass:"btn-info"},
+ {fieldtype:"Button", label: wn._("Refresh"), icon:"icon-refresh icon-white"},
{fieldtype:"Button", label: wn._("Reset Filters")}
],
setup_filters: function() {