svn commit: r695 - trunk/mapbender/http/javascripts/mod_savewmc.php
christoph at osgeo.org
christoph at osgeo.org
Tue Jul 25 08:34:08 EDT 2006
Author: christoph
Date: 2006-07-25 12:34:08+0000
New Revision: 695
Modified:
trunk/mapbender/http/javascripts/mod_savewmc.php
Log:
show alerts and prompts only if a wmc is being saved; if a meetingpoint is being saved, don't display them
Modified: trunk/mapbender/http/javascripts/mod_savewmc.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_savewmc.php?view=diff&rev=695&p1=trunk/mapbender/http/javascripts/mod_savewmc.php&p2=trunk/mapbender/http/javascripts/mod_savewmc.php&r1=694&r2=695
==============================================================================
--- trunk/mapbender/http/javascripts/mod_savewmc.php (original)
+++ trunk/mapbender/http/javascripts/mod_savewmc.php 2006-07-25 12:34:08+0000
@@ -42,10 +42,17 @@
var mod_savewmc_img = new Image(); mod_savewmc_img.src = "<?php echo $e_src; ?>";
//var mod_savewmc_img_over = new Image(); mod_savewmc_img_over.src = "<?php echo preg_replace("/_off/","_over",$e_src); ?>";
-function mod_savewmc(obj){
+function mod_savewmc(title){
var user = "<?php echo $_SESSION["mb_user_id"]; ?>";
var ind = getMapObjIndexByName(mod_savewmc_target);
- var generalTitle = prompt("Save WMC as...");
+ if (title) {
+ var generalTitle = title;
+ title_alert = 0;
+ }
+ else {
+ var generalTitle = prompt("Save WMC as...");
+ title_alert = 1;
+ }
if (generalTitle != null){
var wmc = "";
@@ -375,9 +382,10 @@
//document.sendData.target = "_blank";
document.sendData.action = "../javascripts/mod_insertWmcIntoDb.php";
- document.sendData.data.value = user + "____" + generalTitle + "____" + wmc + "____" + id;
+ document.sendData.data.value = user + "____" + generalTitle + "____" + wmc + "____" + id + "____" + title_alert;
document.sendData.submit();
}
+ return id;
}
function mod_savewmc_init(obj){
//document.getElementById("savewmc").src = mod_zoom1_img_over.src;
More information about the Mapbender_commits
mailing list