notify change event when sending tweet V00.73
authorYves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Mon, 25 Jul 2011 18:56:08 +0200
changeset 231 1006d8050b22
parent 230 5d4ad3fb70bf
child 232 460acd0e3667
notify change event when sending tweet
web/client.php
--- a/web/client.php	Mon Jul 25 18:50:56 2011 +0200
+++ b/web/client.php	Mon Jul 25 18:56:08 2011 +0200
@@ -108,14 +108,15 @@
 			
 			// SEND TWEETS 
 			$("#sendTweet").click(function(){
-				var MyStatus = $('#status').attr("value");
+				var MyStatus = $('#status').val();
 				$.post('tweet_ajax.php', {status:MyStatus}
 				,function(data) {
 				
 					if(data=="true"){
 						$("#messageSuccess").show('fast');
 						$("#messageSuccess").delay(800).hide('slow');
-						$('#status').attr("value","<?php echo($config['hashtag']); ?>");
+						$('#status').val("<?php echo($config['hashtag']); ?>");
+						$('#status').change();
 					}else{
 						$("#error").text(data);
 						$("#messageFailed").show('fast');