[Mapbender-commits] r6094 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri May 7 04:48:47 EDT 2010
Author: verenadiewald
Date: 2010-05-07 04:48:47 -0400 (Fri, 07 May 2010)
New Revision: 6094
Modified:
trunk/mapbender/http/plugins/mb_metadata_edit.html
trunk/mapbender/http/plugins/mb_metadata_edit.js
Log:
connection to new plugin showOriginal
Modified: trunk/mapbender/http/plugins/mb_metadata_edit.html
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_edit.html 2010-05-06 14:04:09 UTC (rev 6093)
+++ trunk/mapbender/http/plugins/mb_metadata_edit.html 2010-05-07 08:48:47 UTC (rev 6094)
@@ -3,7 +3,7 @@
<legend>Service Level Metadata: <img class="metadata_img" src="../img/questionmark.png"></img></legend>
<p>
<label for="wms_title">Show original Service Metadata from last update</label>
- <img class="metadata_img" src="../img/book.png"></img>
+ <img class="original-metadata-wms" src="../img/book.png"></img>
<img class="metadata_img" src="../img/questionmark.png"></img>
</p>
<p>
Modified: trunk/mapbender/http/plugins/mb_metadata_edit.js
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_edit.js 2010-05-06 14:04:09 UTC (rev 6093)
+++ trunk/mapbender/http/plugins/mb_metadata_edit.js 2010-05-07 08:48:47 UTC (rev 6094)
@@ -26,6 +26,10 @@
var that = this;
var validator;
+ this.events = {
+ showOriginalMetadata : new Mapbender.Event()
+ };
+
this.valid = function () {
if (validator && validator.numberOfInvalids() > 0) {
$metadataForm.valid();
@@ -53,9 +57,16 @@
req.send();
};
+ var showOriginalMetadata = function () {
+ that.events.showOriginalMetadata.trigger({
+ data : $metadataForm.easyform("serialize")
+ });
+ };
+
this.init = function (obj) {
if (!formReady) {
$metadataForm.load("../plugins/mb_metadata_edit.html", function () {
+ $metadataForm.find(".original-metadata-wms").bind("click", showOriginalMetadata);
validator = $metadataForm.validate();
fillForm(obj);
formReady = true;
More information about the Mapbender_commits
mailing list