merge
diff --git a/erpnext/accounts/page/accounts_browser/accounts_browser.html b/erpnext/accounts/page/accounts_browser/accounts_browser.html
index 8cfde8a..cb44cec 100644
--- a/erpnext/accounts/page/accounts_browser/accounts_browser.html
+++ b/erpnext/accounts/page/accounts_browser/accounts_browser.html
@@ -1,4 +1,7 @@
-<div class="layout_wrapper">
-<div id="ab_header"></div>
-<div id="ab_body" style="margin: 16px;"></div>
+<div class="layout-wrapper layout-wrapper-appframe">
+ <div class="appframe-area"></div>
+ <div style="padding: 15px;">
+ <div id="ab_header"></div>
+ <div id="ab_body" style="margin: 16px;"></div>
+ </div>
</div>
\ No newline at end of file
diff --git a/erpnext/accounts/page/accounts_browser/accounts_browser.js b/erpnext/accounts/page/accounts_browser/accounts_browser.js
index 49cbcb3..28e55ab 100644
--- a/erpnext/accounts/page/accounts_browser/accounts_browser.js
+++ b/erpnext/accounts/page/accounts_browser/accounts_browser.js
@@ -14,9 +14,12 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-pscript['onshow_Accounts Browser'] = function(){
+pscript['onshow_Accounts Browser'] = function(wrapper){
wn.require('lib/js/legacy/widgets/tree.js');
+ wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'));
+ wrapper.appframe.add_button('New Company', function() { newdoc('Company'); }, 'icon-plus');
+
var route = decodeURIComponent(location.hash);
if(route.indexOf('/')!=-1) {
var chart_type = route.split('/')[1];
@@ -107,14 +110,9 @@
pscript.make_group_area();
pscript.make_ledger_area();
pscript.make_new_acc_dialog();
- pscript.make_new_comp();
pscript.make_new_cost_center_dialog();
}
-//New company link
-pscript.make_new_comp = function(){
- $i('ab_body').page_head.add_button('New Company', function() { new_doc('Company'); }, 0, 'ui-icon-plus');
-}
pscript.make_ac_tree = function() {
//var type= sel_val($i('chart_type'))