[Mapbender-commits] r6470 - in trunk/mapbender/http: css javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Jun 30 08:07:58 EDT 2010
Author: christoph
Date: 2010-06-30 12:07:58 +0000 (Wed, 30 Jun 2010)
New Revision: 6470
Modified:
trunk/mapbender/http/css/treeGDE2.css
trunk/mapbender/http/javascripts/jsTree.js
Log:
http://trac.osgeo.org/mapbender/ticket/652
Modified: trunk/mapbender/http/css/treeGDE2.css
===================================================================
--- trunk/mapbender/http/css/treeGDE2.css 2010-06-30 11:13:30 UTC (rev 6469)
+++ trunk/mapbender/http/css/treeGDE2.css 2010-06-30 12:07:58 UTC (rev 6470)
@@ -53,3 +53,7 @@
padding:0px;
vertical-align:middle;
}
+
+#treeGDE span {
+ font-size: 15px;
+}
Modified: trunk/mapbender/http/javascripts/jsTree.js
===================================================================
--- trunk/mapbender/http/javascripts/jsTree.js 2010-06-30 11:13:30 UTC (rev 6469)
+++ trunk/mapbender/http/javascripts/jsTree.js 2010-06-30 12:07:58 UTC (rev 6470)
@@ -632,11 +632,58 @@
if(jst_context_menu && !n0[1][5] && !menu)
n0[1][5] = jst_context_menu
-
- code.push(' alt=""></td><td nowrap>'+((n1||n0[1][3])?'<img' + (((strData == jst_data)&&!jst_display_root) ? ' style="display:none"' : '') + (n0[1][5] ? ' class="action" onClick="showMenu(\'' + strData + '[' + n + ']\', this, event)"' : '') + ' src="' + jst_image_folder + '/' + (n1 ? (n0[1][3]?n0[1][3]:"closed_folder.png") : n0[1][3] ? n0[1][3] : "node.png") + '" alt="">':'')+((n0[1][6]&&((strData != jst_data)||jst_display_root))?n0[1][6]:'')+'<a class="node"' + (((strData == jst_data)&&!jst_display_root) ? ' style="display:none"' : '')+ (n0[1][4] ? ' title="' + n0[1][4] + '"' : '') + ' onClick="nodeClick(this)" href=' + "'" + (menu ? String(n0[1][1]).replace(/{@strData}/g, strData) : n0[1][1] ) + "'" + (n0[1][2] ? ' target="' + n0[1][2] + '"' : jst_target ? ' target="' + jst_target + '"' : '') + '>' + n0[1][0] + '</a></td></tr>')
+
+ console.log(n0[0]);
+ console.log($.toJSON(code));
+ code.push(
+ ' alt=""></td><td nowrap>'+
+ ((n1||n0[1][3]) ?
+ '<img' + (
+ ((strData == jst_data)&&!jst_display_root) ?
+ ' style="display:none"' : ''
+ ) +
+ (n0[1][5] ?
+ ' class="action" onClick="showMenu(\'' +
+ strData + '[' + n + ']\', this, event)"' : ''
+ ) +
+ ' src="' + jst_image_folder + '/' +
+ (n1 ?
+ (n0[1][3]?
+ n0[1][3]:"closed_folder.png"
+ ) : n0[1][3] ?
+ n0[1][3] : "node.png"
+ ) + '" alt="">':''
+ )+
+ (
+ (n0[1][6] && ((strData != jst_data)||jst_display_root)) ?
+ n0[1][6]:''
+ ) +
+ (typeof n0[0] === "string" && n0[0].match(/folder_/) ? '<span class="node"' : '<a class="node"') +
+// '<a class="node"' +
+ (
+ ((strData == jst_data)&&!jst_display_root) ?
+ ' style="display:none"' : ''
+ )+
+ (n0[1][4] ?
+ ' title="' + n0[1][4] + '"' : ''
+ ) +
+ (typeof n0[0] === "string" && n0[0].match(/folder_/) ? ' ' : ' onClick="nodeClick(this)" ') +
+ 'href=' + "'" +
+ (menu ?
+ String(n0[1][1]).replace(/{@strData}/g, strData) : n0[1][1]
+ ) + "'" +
+ (n0[1][2] ?
+ ' target="' + n0[1][2] + '"' : jst_target ?
+ ' target="' + jst_target + '"' : ''
+ ) + '>' + n0[1][0] +
+ (typeof n0[0] === "string" && n0[0].match(/folder_/) ? '</span>' : '</a>') +
+// '</a>' +
+ '</td></tr>'
+ );
}
code.push('</table>')
+
return code.join("")
}
More information about the Mapbender_commits
mailing list