[Mapbender-commits] r5467 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Jan 31 05:06:40 EST 2010


Author: christoph
Date: 2010-01-31 05:06:40 -0500 (Sun, 31 Jan 2010)
New Revision: 5467

Modified:
   trunk/mapbender/http/plugins/mb_twitter_update.js
Log:


Modified: trunk/mapbender/http/plugins/mb_twitter_update.js
===================================================================
--- trunk/mapbender/http/plugins/mb_twitter_update.js	2010-01-31 10:00:48 UTC (rev 5466)
+++ trunk/mapbender/http/plugins/mb_twitter_update.js	2010-01-31 10:06:40 UTC (rev 5467)
@@ -2,6 +2,7 @@
 var that = this;
 
 Mapbender.events.init.register(function () {
+	
 	var updateStatus = function (status, lat, lon, callback) {
 		var req = new Mapbender.Ajax.Request({
 			url: "../plugins/mb_twitter.php",
@@ -25,7 +26,8 @@
 			}
 		});
 		req.send();	
-	}
+	};
+
 	var button = new Mapbender.Button({
 		domElement: that,
 		over: options.src.replace(/_off/, "_over"),
@@ -51,7 +53,7 @@
 						"<div>What's happening?<span style='float:right'>140</span></div>" + 
 						"<textarea rows='2' cols='70'></textarea>" + 
 						"<br><span style='float:right;margin:10px;'>" + 
-						"<span id='twitter_update' style='margin:5px;padding:5px;' " + 
+						"<span id='twitter_update' style='cursor:pointer;margin:5px;padding:5px;' " + 
 						"class='ui-state-default ui-corner-all'>update</span>" + 
 						"<a id='twitter_cancel' href='#'>cancel</a></span>" + 
 						"</div>").appendTo("body").show("slow");
@@ -64,7 +66,7 @@
 					});
 					var $button = $("#twitter_update");
 					$button.click(function () {
-						twitterStatus.hide("slow", function () {
+						$twitterStatus.hide("slow", function () {
 							m.remove();						
 						});
 						// show sandclock
@@ -74,7 +76,7 @@
 					});
 					var $cancel = $("#twitter_cancel");
 					$cancel.click(function () {
-						twitterStatus.hide("slow", function () {
+						$twitterStatus.hide("slow", function () {
 							m.remove();						
 						});
 					});



More information about the Mapbender_commits mailing list