[Mapbender-commits] r7421 - in trunk/mapbender/http: css plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Jan 5 04:42:41 EST 2011
Author: kmq
Date: 2011-01-05 01:42:41 -0800 (Wed, 05 Jan 2011)
New Revision: 7421
Modified:
trunk/mapbender/http/css/wfsconftree.css
trunk/mapbender/http/plugins/wfsConfTree.js
Log:
added rmeove and meta buttons to wfsconftree
Modified: trunk/mapbender/http/css/wfsconftree.css
===================================================================
--- trunk/mapbender/http/css/wfsconftree.css 2011-01-05 09:41:06 UTC (rev 7420)
+++ trunk/mapbender/http/css/wfsconftree.css 2011-01-05 09:42:41 UTC (rev 7421)
@@ -98,8 +98,20 @@
background-image: url("../img/button_digitize/geomRemove.png");
background-repeat: no-repeat;
background-position: 0 0;
+ color: transparent;
+ width: 2em;
}
+ul.conftree li a.meta{
+ background-image: url("../img/tree_new/info.png");
+ background-repeat: no-repeat;
+ background-position: 0 0;
+ color: transparent;
+ width: 2em;
+ display: inline-block;
+}
+
+
ul.conftree li.open, ul.conftree li.closed {
/* background-image: url("http://localhost:8888/vertical_dots.png");*/
background-repeat: repeat-x ;
Modified: trunk/mapbender/http/plugins/wfsConfTree.js
===================================================================
--- trunk/mapbender/http/plugins/wfsConfTree.js 2011-01-05 09:41:06 UTC (rev 7420)
+++ trunk/mapbender/http/plugins/wfsConfTree.js 2011-01-05 09:42:41 UTC (rev 7421)
@@ -62,23 +62,23 @@
switch(aWFSConf[i].wfs_conf_type){
/* search */
case "0":
- $wfsconfEntry = $('<li><a href="#">Suche</a></li>');
+ $wfsconfEntry = $('<li class="search" ><a href="#" class="meta">metadata</a><button class="remove">remove</button><a href="#" class="dialogopen">'+ aWFSConf[i].g_label +'</a></li>');
break;
/* digitize */
case "1":
- $wfsconfEntry = $('<li><a href="#">Erfassung</a></li>');
+ $wfsconfEntry = $('<li class="digitize" ><a href="#" class="meta">medadata</a><button class="remove">remove</button><a href="#" class="dialogopen">'+ aWFSConf[i].g_label +'</a></li>');
break;
/* download */
case "2":
- $wfsconfEntry = $('<li><a href="#">Download</a></li>');
+ $wfsconfEntry = $('<li class="download" ><a href="#" class="meta">metadata</a><button class="remove">remove</button><a href="#" class="dialogopen">'+ aWFSConf[i].g_label +'</a></li>');
break;
}
$featuretypeList.append($wfsconfEntry);
- $wfsconfEntry.find("a").click((function(wfsConf){
+ $wfsconfEntry.find("a.dialogopen").click((function(wfsConf){
return function(){
switch(wfsConf.wfs_conf_type){
@@ -106,6 +106,18 @@
};
})(aWFSConf[i]));
+ $wfsconfEntry.find("button.remove").click(function(){
+
+ // if this was the last entry in the featuregroup, remove it completely ...
+ if($(this).parent().siblings().size() == 0){
+ $(this).parent().parent().parent().remove();
+ }else{
+ //.. otherwise just rmeove the entry
+ $(this).parent().remove();
+ }
+
+
+ });
}
});
More information about the Mapbender_commits
mailing list