From: L W <war...@us...> - 2005-09-28 19:33:18
|
Update of /cvsroot/dynapi/dynapi3x/src/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2876/src/gui Modified Files: explorer.style.js Log Message: [-] Fix missing nowrap in Explorer Style Index: explorer.style.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/gui/explorer.style.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** explorer.style.js 9 Sep 2003 15:34:56 -0000 1.1 --- explorer.style.js 28 Sep 2005 19:33:11 -0000 1.2 *************** *** 4,8 **** The DynAPI Distribution is distributed under the terms of the GNU LGPL license. ! Requires: StyleManager, Explorer */ --- 4,8 ---- The DynAPI Distribution is distributed under the terms of the GNU LGPL license. ! Requires: StyleManager, Explorer */ *************** *** 13,17 **** style.cssLeave = 'ExplorerLeave'; style.cssRootLeave = 'ExplorerRootLeave'; ! style.cssCurrentLeave = 'ExplorerCurrentLeave'; style.loadImages = function(){ // load default images --- 13,17 ---- style.cssLeave = 'ExplorerLeave'; style.cssRootLeave = 'ExplorerRootLeave'; ! style.cssCurrentLeave = 'ExplorerCurrentLeave'; style.loadImages = function(){ // load default images *************** *** 42,49 **** style._buildHTML = function(leave,level,last,lD) { var niv = level||0; ! var listaD = lD || new Array(); ! //if(leave['_html'+leave.open] && !leave.tree._hTree[leave.id]) return leave['_html'+leave.open]; ! var tree = leave.tree; var iFL = tree.getStyleAttribute('imageFile'); --- 42,49 ---- style._buildHTML = function(leave,level,last,lD) { var niv = level||0; ! var listaD = lD || new Array(); ! //if(leave['_html'+leave.open] && !leave.tree._hTree[leave.id]) return leave['_html'+leave.open]; ! var tree = leave.tree; var iFL = tree.getStyleAttribute('imageFile'); *************** *** 58,67 **** var iNC = tree.getStyleAttribute('imageNoChildren'); var iNCL = tree.getStyleAttribute('imageNoChildrenlast'); ! var csRLV = tree.getStyleAttribute('cssRootLeave')||''; var csCLV = tree.getStyleAttribute('cssCurrentLeave')||''; var csLV = tree.getStyleAttribute('cssLeave')||''; ! ! var ret = '<tr><td><img src="'+iWht.src+'" height="1" width="5"></td><td valign="top">'; for(var i=0;i<(niv-1);i++) ret += '<img src="'+(listaD[i]? iWht.src:iLn.src)+'" width="15" height="18" align=top>'; if(niv == 0) ret += ''; --- 58,67 ---- var iNC = tree.getStyleAttribute('imageNoChildren'); var iNCL = tree.getStyleAttribute('imageNoChildrenlast'); ! var csRLV = tree.getStyleAttribute('cssRootLeave')||''; var csCLV = tree.getStyleAttribute('cssCurrentLeave')||''; var csLV = tree.getStyleAttribute('cssLeave')||''; ! ! var ret = '<tr><td><img src="'+iWht.src+'" height="1" width="5"></td><td valign="top" nowrap>'; for(var i=0;i<(niv-1);i++) ret += '<img src="'+(listaD[i]? iWht.src:iLn.src)+'" width="15" height="18" align=top>'; if(niv == 0) ret += ''; *************** *** 77,81 **** if (leave.open||leave.id == leave.tree.currentPos) ret += '<img src="'+(icon_sel.src)+'" width="16" height="16" align="top">'; else ret += '<img src="'+(icon.src)+'" width="16" height="16" align="top">'; ! } ret += '<a class="'+(niv==0 ? csRLV: (leave.id == tree.currentPos ? (leave.cssSel||csCLV) : (leave.css||csLV))) + '" href="javascript:;" onclick="return '+leave.tree+'.setCurrent(\''+ leave.id +'\')">'; --- 77,81 ---- if (leave.open||leave.id == leave.tree.currentPos) ret += '<img src="'+(icon_sel.src)+'" width="16" height="16" align="top">'; else ret += '<img src="'+(icon.src)+'" width="16" height="16" align="top">'; ! } ret += '<a class="'+(niv==0 ? csRLV: (leave.id == tree.currentPos ? (leave.cssSel||csCLV) : (leave.css||csLV))) + '" href="javascript:;" onclick="return '+leave.tree+'.setCurrent(\''+ leave.id +'\')">'; *************** *** 89,93 **** listaD[niv-1] = last; if((leave.open || niv==0) && leave.children.length!=0) { ! for(var i in leave.children) { q++; ret += this._buildHTML(leave.children[i],niv+1,q==leave.count,listaD); --- 89,93 ---- listaD[niv-1] = last; if((leave.open || niv==0) && leave.children.length!=0) { ! for(var i in leave.children) { q++; ret += this._buildHTML(leave.children[i],niv+1,q==leave.count,listaD); *************** *** 103,108 **** this._adjustSize = this.style._adjustSize; this.setAutoSize(this.w||true,this.h||true); ! if(this._created) this.renderStyle(); ! }; // renderStyle will act as a function of the DynLayer object style.renderStyle = function(act){ --- 103,108 ---- this._adjustSize = this.style._adjustSize; this.setAutoSize(this.w||true,this.h||true); ! if(this._created) this.renderStyle(); ! }; // renderStyle will act as a function of the DynLayer object style.renderStyle = function(act){ *************** *** 117,121 **** this._OldAdjustSize = null; }; ! return style; }; --- 117,121 ---- this._OldAdjustSize = null; }; ! return style; }; *************** *** 131,133 **** // Creates the style once it has been loaded ! Styles.addStyle('Explorer',ExplorerStyle); \ No newline at end of file --- 131,133 ---- // Creates the style once it has been loaded ! Styles.addStyle('Explorer',ExplorerStyle); |