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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Mar 2 09:37:07 EST 2010


Author: christoph
Date: 2010-03-02 09:37:06 -0500 (Tue, 02 Mar 2010)
New Revision: 5712

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-03-02 14:04:14 UTC (rev 5711)
+++ trunk/mapbender/http/plugins/mb_twitter_update.js	2010-03-02 14:37:06 UTC (rev 5712)
@@ -5,10 +5,10 @@
 	var signIn = Mapbender.modules.twitter_signin;
 	if (signIn !== undefined) {
 		signIn.events.signedIn.register(function () {
-			$twitterUpdate.show();
+			$twitterUpdate.fadeIn();
 		});
 		signIn.events.signedOut.register(function () {
-			$twitterUpdate.hide();
+			$twitterUpdate.fadeOut();
 		});
 	}
 });
@@ -50,7 +50,7 @@
 				var $twitterStatus, m;
 				var cancel = function () {
 			
-						$twitterStatus.hide("slow", function () {
+						$twitterStatus.fadeOut("slow", function () {
 							m.remove();					
 							$(this).remove();	
 						});
@@ -74,14 +74,14 @@
 						(pix.y + parseInt(this.style.top, 10)) + "px;" + 
 						"left:" + (offset + parseInt(this.style.left, 10)) + "px;width:"+(width-2*offset)+"px;display:none'>" + 
 						"<div style='width:100%;height:10px;background-position:" + (pix.x-offset-10) + "px 0px;background-image:url(http://s.twimg.com/a/1266605807/images/arr2.gif);background-repeat:no-repeat;'/>" + 
-						"<div style='background-color:#fff;padding:8px;'>" + 
+						"<div style='background-color:#fff;height:110px;padding:8px;'>" + 
 						"<div>What's happening?<span class='chars-left' style='float:right'>140</span></div>" + 
 						"<textarea rows='2' cols='70'></textarea>" + 
 						"<br><span style='float:right;margin:10px;'>" + 
 						"<span id='twitter_update_send' 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></div>").appendTo("body").show("slow");
+						"</div></div>").appendTo("body").fadeIn("slow");
 					var $charsLeft = $("span.chars-left", $twitterStatus);
 					var $textarea = $("textarea", $twitterStatus);
 					$textarea.focus().keypress(function () {
@@ -91,7 +91,7 @@
 					});
 					var $button = $("#twitter_update_send");
 					$button.click(function () {
-						$twitterStatus.hide("slow", function () {
+						$twitterStatus.fadeOut("slow", function () {
 							m.remove();						
 						});
 						// show sandclock



More information about the Mapbender_commits mailing list