hide toolbar only hides std buttons

This commit is contained in:
Rushabh Mehta 2013-02-05 15:04:08 +05:30
parent 7b60f7b71b
commit 211ef96cae

View file

@ -127,13 +127,13 @@ _f.FrmHeader = Class.extend({
refresh_toolbar: function() {
// clear
var me = this;
this.appframe.clear_buttons();
if(this.frm.meta.hide_toolbar) {
this.appframe.$w.find('.appframe-toolbar').toggle(false);
this.frm.save_disabled = true;
return;
}
this.appframe.clear_buttons();
var p = this.frm.perm[0];
// Edit