[Mapbender-commits] r8920 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jun 2 02:59:35 PDT 2014
Author: verenadiewald
Date: 2014-06-02 02:59:34 -0700 (Mon, 02 Jun 2014)
New Revision: 8920
Modified:
trunk/mapbender/http/php/mod_updateWMS.php
Log:
remove complete html of element id 'compareDialog' when compare dialog is destroyed
Modified: trunk/mapbender/http/php/mod_updateWMS.php
===================================================================
--- trunk/mapbender/http/php/mod_updateWMS.php 2014-05-28 09:49:59 UTC (rev 8919)
+++ trunk/mapbender/http/php/mod_updateWMS.php 2014-06-02 09:59:34 UTC (rev 8920)
@@ -156,7 +156,8 @@
authPassword = $("#imrAuthPassword").val();
authName = $("#imrAuthName").val();
}
-
+ console.log(dbOldNameArray);
+ console.log(dbCurrentNameArray);
var updateParams = {
//TODO add auth info!
"command": "updateWMS",
@@ -207,8 +208,9 @@
else {
if($("#compare_dialog").attr("checked")) {
if (typeof $compareDialog == 'object') {
- $compareDialog.dialog("destroy");
- }
+ $("#compareDialog").remove();
+ $compareDialog.dialog("destroy");
+ }
radioAuthValue = $('input:radio[name=imrHttpAuth]:checked').val();
if (radioAuthValue == "keep") {
authType = $("#imrOldAuthType").val();
@@ -290,11 +292,12 @@
width : "600px",
buttons: {
"Close": function() {
+ $("#compareDialog").remove();
$(this).dialog("destroy").remove();
},
"Update WMS": function() {
updateWms();
-
+ $("#compareDialog").remove();
$(this).dialog("destroy").remove();
}
}
More information about the Mapbender_commits
mailing list