[Mapbender-commits] r7155 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Nov 24 09:42:32 EST 2010
Author: verenadiewald
Date: 2010-11-24 06:42:31 -0800 (Wed, 24 Nov 2010)
New Revision: 7155
Modified:
trunk/mapbender/http/plugins/mb_metadata_featuretype.js
trunk/mapbender/http/plugins/mb_metadata_featuretype.php
trunk/mapbender/http/plugins/mb_metadata_layer.js
trunk/mapbender/http/plugins/mb_metadata_layer.php
Log:
reset icon for categories selects
Modified: trunk/mapbender/http/plugins/mb_metadata_featuretype.js
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_featuretype.js 2010-11-24 14:35:46 UTC (rev 7154)
+++ trunk/mapbender/http/plugins/mb_metadata_featuretype.js 2010-11-24 14:42:31 UTC (rev 7155)
@@ -88,11 +88,24 @@
}
$metadataForm.easyform("fill", obj);
that.valid();
+ that.enableResetButton();
}
});
req.send();
};
+ this.enableResetButton = function () {
+ $("#resetIsoTopicCats").click(function () {
+ $("#featuretype_md_topic_category_id option").removeAttr("selected");
+ });
+ $("#resetCustomCats").click(function () {
+ $("#featuretype_custom_category_id option").removeAttr("selected");
+ });
+ $("#resetInspireCats").click(function () {
+ $("#featuretype_inspire_category_id option").removeAttr("selected");
+ });
+ }
+
this.fill = function (obj) {
$metadataForm.easyform("fill", obj);
};
Modified: trunk/mapbender/http/plugins/mb_metadata_featuretype.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_featuretype.php 2010-11-24 14:35:46 UTC (rev 7154)
+++ trunk/mapbender/http/plugins/mb_metadata_featuretype.php 2010-11-24 14:42:31 UTC (rev 7155)
@@ -94,6 +94,7 @@
echo displayCategories($sql);
?>
</select>
+ <img id="resetIsoTopicCats" title="reset selection" src="../img/cross.png" style="cursor:pointer;"/>
</p>
<p>
<label for="featuretype_inspire_category_id" class="label_classification"><?php echo _mb("INSPIRE Category");?>:</label>
@@ -104,6 +105,7 @@
echo displayCategories($sql);
?>
</select>
+ <img id="resetInspireCats" title="reset selection" src="../img/cross.png" style="cursor:pointer;"/>
</p>
<p>
<label for="featuretype_custom_category_id" class="label_classification"><?php echo _mb("Custom Category");?>:</label>
@@ -114,6 +116,7 @@
echo displayCategories($sql);
?>
</select>
+ <img id="resetCustomCats" title="reset selection" src="../img/cross.png" style="cursor:pointer;"/>
</p>
</fieldset>
</div>
Modified: trunk/mapbender/http/plugins/mb_metadata_layer.js
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_layer.js 2010-11-24 14:35:46 UTC (rev 7154)
+++ trunk/mapbender/http/plugins/mb_metadata_layer.js 2010-11-24 14:42:31 UTC (rev 7155)
@@ -88,11 +88,24 @@
}
$metadataForm.easyform("fill", obj);
that.valid();
+ that.enableResetButton();
}
});
req.send();
};
+ this.enableResetButton = function () {
+ $("#resetIsoTopicCats").click(function () {
+ $("#layer_md_topic_category_id option").removeAttr("selected");
+ });
+ $("#resetCustomCats").click(function () {
+ $("#layer_custom_category_id option").removeAttr("selected");
+ });
+ $("#resetInspireCats").click(function () {
+ $("#layer_inspire_category_id option").removeAttr("selected");
+ });
+ }
+
this.fill = function (obj) {
$metadataForm.easyform("fill", obj);
};
Modified: trunk/mapbender/http/plugins/mb_metadata_layer.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_layer.php 2010-11-24 14:35:46 UTC (rev 7154)
+++ trunk/mapbender/http/plugins/mb_metadata_layer.php 2010-11-24 14:42:31 UTC (rev 7155)
@@ -101,6 +101,7 @@
echo displayCategories($sql);
?>
</select>
+ <img id="resetIsoTopicCats" title="reset selection" src="../img/cross.png" style="cursor:pointer;"/>
</p>
<p>
<label for="layer_inspire_category_id" class="label_classification"><?php echo _mb("INSPIRE Category");?>:</label>
@@ -111,6 +112,7 @@
echo displayCategories($sql);
?>
</select>
+ <img id="resetInspireCats" title="reset selection" src="../img/cross.png" style="cursor:pointer;"/>
</p>
<p>
<label for="layer_custom_category_id" class="label_classification"><?php echo _mb("Custom Category");?>:</label>
@@ -121,6 +123,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