pscript['onload_WIP Monitor'] = function(){ wip = new WIP_Monitor(); var h = new PageHeader('wip_head','Work in Progress Monitor','A quick glance at your work in progress and pipeline'); h.add_button('Refresh', function(){ wip = new WIP_Monitor();}, 1, 'ui-icon-refresh'); } // Work In Progress Monitor // ========================================================================================================================================================= WIP_Monitor = function(){ var me = this; this.row_index = 0; $c_obj('Home Control','get_wip_counts','',function(r,rt){ me.make_wip_dashboard(r.message); }); } // Make wip dashboard // ------------------ WIP_Monitor.prototype.make_wip_dashboard = function(wip_dict) { var me = this; // list of doctypes which user can read var can_read_dt = ['Lead', 'Enquiry', 'Sales Order', 'Receivable Voucher', 'Indent', 'Purchase Order', 'Payable Voucher', 'Delivery Note', 'Task', 'Serial No']; $i('wip_body').innerHTML = ''; this.tab = make_table('wip_body',1,0,'100%',[],{padding:'4px'}); for(var k=0; k