[Mapbender-commits] r2509 - branches/beck_dev/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 17 12:25:57 EDT 2008


Author: christoph
Date: 2008-06-17 12:25:57 -0400 (Tue, 17 Jun 2008)
New Revision: 2509

Modified:
   branches/beck_dev/mapbender/http/php/mod_editApplication.php
Log:
minor enhancements

Modified: branches/beck_dev/mapbender/http/php/mod_editApplication.php
===================================================================
--- branches/beck_dev/mapbender/http/php/mod_editApplication.php	2008-06-17 15:55:33 UTC (rev 2508)
+++ branches/beck_dev/mapbender/http/php/mod_editApplication.php	2008-06-17 16:25:57 UTC (rev 2509)
@@ -32,7 +32,7 @@
   background-color: #eee;
 }
 .ui-selected {
-  border-width:5px;
+  border-width:1px;
   border-style:solid;
   border-color:blue;
   background-color: #E6F7D4;
@@ -62,7 +62,8 @@
 		controlPopup = new mb_popup({
 			left:300,
 			top:300,
-			html:"<div id='controls'></div>"
+			html:"<div id='controls'></div>",
+			title:"Toolbox"
 		});
 		
 		selectButton = new Button({
@@ -217,6 +218,7 @@
 	}
 	
 	function updateDatabase (options) {
+		var callback = options.callback;
 		var data = [];
 		$(".collection").children().each(function() {
 			data.push({
@@ -237,6 +239,7 @@
 		}, function (json, status) {
 			var replyObj = eval('(' + json + ')');
 			alert(replyObj.success);
+			callback();
 		});
 	}
 </script>
@@ -266,12 +269,13 @@
 		if (db_result($res,$i,"e_left") && db_result($res,$i,"e_top")) {
 			if (db_result($res,$i,"e_closetag") != "iframe" ) {
 				echo "<".db_result($res,$i,"e_element")." ";
+				echo " style = '";
 			}
 			else {
 				echo "<div ";
+				echo " style = 'border-width:1px;border-style:solid;border-color:black;background-color: #ffffff;";
 			}
 	//			echo "<div class='wrap' ";
-			echo " style = 'background-color:#ff0000;";
 			if(db_result($res,$i,"e_left") != "" && db_result($res,$i,"e_top") != ""){
 				echo "position:absolute;";
 				echo "left:".db_result($res,$i,"e_left").";";
@@ -330,14 +334,7 @@
 			}
 			
 		}
-		
-//			echo "</div>";
 	}
-//		if (db_result($res,$i,"e_element") == "body" && USE_LOAD_MESSAGE) {
-//			echo "<div id='loading_mapbender' style='position:absolute;top:100;left:100'>" . 
-//				$htmlWhileLoading . "</div>" . 
-//				"<div id='complete_mapbender' style='display:none'>";
-//		}
 	$i++;
 }
 ?>



More information about the Mapbender_commits mailing list