Change path of images in accounts browser and sales browser
This commit is contained in:
parent
deb816d30c
commit
5245e6547b
@ -124,7 +124,7 @@ pscript.make_ac_tree = function() {
|
|||||||
var imgsrc=null;
|
var imgsrc=null;
|
||||||
var has_children = true;
|
var has_children = true;
|
||||||
if(cl[i].group_or_ledger=='Ledger') {
|
if(cl[i].group_or_ledger=='Ledger') {
|
||||||
var imgsrc = 'images/icons/page.gif';
|
var imgsrc = 'lib/images/icons/page.gif';
|
||||||
has_children = false;
|
has_children = false;
|
||||||
}
|
}
|
||||||
var t = tree.addNode(n, cl[i].account_name, imgsrc,tree.std_onclick, has_children ? tree.std_onexp : null);
|
var t = tree.addNode(n, cl[i].account_name, imgsrc,tree.std_onclick, has_children ? tree.std_onexp : null);
|
||||||
@ -137,7 +137,7 @@ pscript.make_ac_tree = function() {
|
|||||||
var imgsrc=null;
|
var imgsrc=null;
|
||||||
var has_children = true;
|
var has_children = true;
|
||||||
if(cl[i].group_or_ledger=='Ledger') {
|
if(cl[i].group_or_ledger=='Ledger') {
|
||||||
var imgsrc = 'images/icons/page.gif';
|
var imgsrc = 'lib/images/icons/page.gif';
|
||||||
has_children = false;
|
has_children = false;
|
||||||
}
|
}
|
||||||
var t = tree.addNode(n, cl[i].cost_center_name, imgsrc,tree.std_onclick, has_children ? tree.std_onexp : null);
|
var t = tree.addNode(n, cl[i].cost_center_name, imgsrc,tree.std_onclick, has_children ? tree.std_onexp : null);
|
||||||
@ -254,7 +254,7 @@ pscript.make_group_area = function(type) {
|
|||||||
|
|
||||||
// refresh
|
// refresh
|
||||||
ref_btn = $a(pscript.group_area, 'div', '', {fontSize: '14px',marginBottom: '8px', marginTop: '24px', fontWeight: 'bold'});
|
ref_btn = $a(pscript.group_area, 'div', '', {fontSize: '14px',marginBottom: '8px', marginTop: '24px', fontWeight: 'bold'});
|
||||||
ref_btn.innerHTML = '<img src="images/icons/page_refresh.gif" style="margin-right: 8px"><span class="link_type">Refresh Tree</span>';
|
ref_btn.innerHTML = '<img src="lib/images/icons/page_refresh.gif" style="margin-right: 8px"><span class="link_type">Refresh Tree</span>';
|
||||||
ref_btn.onclick= function() {
|
ref_btn.onclick= function() {
|
||||||
pscript.cur_node.clear_child_nodes();
|
pscript.cur_node.clear_child_nodes();
|
||||||
pscript.cur_node.expand();
|
pscript.cur_node.expand();
|
||||||
@ -312,7 +312,7 @@ pscript.make_ledger_area = function() {
|
|||||||
|
|
||||||
//General ledger report link
|
//General ledger report link
|
||||||
pscript.gl_rep = $a(pscript.ledger_area, 'div','', {fontSize: '14px',marginBottom: '8px', fontWeight: 'bold'});
|
pscript.gl_rep = $a(pscript.ledger_area, 'div','', {fontSize: '14px',marginBottom: '8px', fontWeight: 'bold'});
|
||||||
pscript.gl_rep.innerHTML = '<img src="images/icons/report.png" style="margin-right: 8px"><span class="link_type">Open Ledger</span>';
|
pscript.gl_rep.innerHTML = '<img src="lib/images/icons/report.png" style="margin-right: 8px"><span class="link_type">Open Ledger</span>';
|
||||||
pscript.gl_rep.onclick = function(){ pscript.make_report('gl'); }
|
pscript.gl_rep.onclick = function(){ pscript.make_report('gl'); }
|
||||||
|
|
||||||
//Budget report link
|
//Budget report link
|
||||||
|
@ -139,7 +139,7 @@ SalesBrowser.prototype.make_tree = function() {
|
|||||||
var has_children = true;
|
var has_children = true;
|
||||||
|
|
||||||
if(cl[i].is_group=='No') {
|
if(cl[i].is_group=='No') {
|
||||||
var imgsrc = 'images/icons/page.gif';
|
var imgsrc = 'lib/images/icons/page.gif';
|
||||||
has_children = false;
|
has_children = false;
|
||||||
}
|
}
|
||||||
var t = me.tree.addNode(n, cl[i].name, imgsrc,me.tree.std_onclick, has_children ? me.tree.std_onexp : null);
|
var t = me.tree.addNode(n, cl[i].name, imgsrc,me.tree.std_onclick, has_children ? me.tree.std_onexp : null);
|
||||||
@ -219,7 +219,7 @@ SalesBrowser.prototype.first_level_node = function(){
|
|||||||
var has_children = true;
|
var has_children = true;
|
||||||
|
|
||||||
if(cl[i].is_group=='No') {
|
if(cl[i].is_group=='No') {
|
||||||
var imgsrc = 'images/icons/page.gif';
|
var imgsrc = 'lib/images/icons/page.gif';
|
||||||
has_children = false;
|
has_children = false;
|
||||||
}
|
}
|
||||||
me.tree_area.innerHTML = '';
|
me.tree_area.innerHTML = '';
|
||||||
@ -418,4 +418,4 @@ MakeDialog.prototype.make_args = function(){
|
|||||||
else if(this.cls_obj.sel == 'Sales Person')
|
else if(this.cls_obj.sel == 'Sales Person')
|
||||||
return {'node_title':nt,'sales_person_name':nm,'parent_sales_person':pnm,'is_group':grp,'old_parent':old_prt}
|
return {'node_title':nt,'sales_person_name':nm,'parent_sales_person':pnm,'is_group':grp,'old_parent':old_prt}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user