[Mapbender-commits] r7154 - in trunk/mapbender/http: img plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Nov 24 09:35:46 EST 2010
Author: verenadiewald
Date: 2010-11-24 06:35:46 -0800 (Wed, 24 Nov 2010)
New Revision: 7154
Added:
trunk/mapbender/http/img/cross.png
Modified:
trunk/mapbender/http/plugins/mb_metadata_wmc_edit.js
trunk/mapbender/http/plugins/mb_metadata_wmc_edit.php
Log:
reset icon for categories selects
Added: trunk/mapbender/http/img/cross.png
===================================================================
(Binary files differ)
Property changes on: trunk/mapbender/http/img/cross.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/mapbender/http/plugins/mb_metadata_wmc_edit.js
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_wmc_edit.js 2010-11-24 13:57:20 UTC (rev 7153)
+++ trunk/mapbender/http/plugins/mb_metadata_wmc_edit.js 2010-11-24 14:35:46 UTC (rev 7154)
@@ -79,10 +79,23 @@
$metadataForm.easyform("reset");
$metadataForm.easyform("fill", obj);
that.valid();
+ that.enableResetButton();
}
});
req.send();
};
+
+ this.enableResetButton = function () {
+ $("#resetIsoTopicCats").click(function () {
+ $("#isoTopicCats option").removeAttr("selected");
+ });
+ $("#resetCustomCats").click(function () {
+ $("#customCats option").removeAttr("selected");
+ });
+ $("#resetInspireCats").click(function () {
+ $("#inspireCats option").removeAttr("selected");
+ });
+ }
this.fill = function (obj) {
$metadataForm.easyform("fill", obj);
Modified: trunk/mapbender/http/plugins/mb_metadata_wmc_edit.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_wmc_edit.php 2010-11-24 13:57:20 UTC (rev 7153)
+++ trunk/mapbender/http/plugins/mb_metadata_wmc_edit.php 2010-11-24 14:35:46 UTC (rev 7154)
@@ -62,6 +62,7 @@
<legend><?php echo _mb("Classification");?></legend>
<p>
<label for="isoTopicCats" class="label_classification"><?php echo _mb("ISO Topic Category");?>:</label>
+
<img class="metadata_img" title="<?php echo _mb("Inspire");?>" src="../img/misc/inspire_eu_klein.png"></img>
<select class="metadata_selectbox" id="isoTopicCats" name="isoTopicCats" size="2" multiple="multiple">
<?php
@@ -69,6 +70,7 @@
echo displayCategories($sql);
?>
</select>
+ <img id="resetIsoTopicCats" title="reset selection" src="../img/cross.png" style="cursor:pointer;"/>
</p>
<p>
<label for="inspireCats" class="label_classification"><?php echo _mb("INSPIRE Category");?>:</label>
@@ -79,6 +81,7 @@
echo displayCategories($sql);
?>
</select>
+ <img id="resetInspireCats" title="reset selection" src="../img/cross.png" style="cursor:pointer;"/>
</p>
<p>
<label for="customCats" class="label_classification"><?php echo _mb("Custom Category");?>:</label>
@@ -89,6 +92,7 @@
echo displayCategories($sql);
?>
</select>
+ <img id="resetCustomCats" title="reset selection" src="../img/cross.png" style="cursor:pointer;"/>
</p>
</fieldset>
</div>
More information about the Mapbender_commits
mailing list