← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5034: Denying double-click on reply button in messaging

 

------------------------------------------------------------
revno: 5034
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2011-10-26 08:17:34 +0200
message:
  Denying double-click on reply button in messaging
modified:
  dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/resources/org/hisp/dhis/dashboard/i18n_module.properties
  dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/message.js
  dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/readMessage.vm


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/resources/org/hisp/dhis/dashboard/i18n_module.properties'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/resources/org/hisp/dhis/dashboard/i18n_module.properties	2011-10-06 15:39:08 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/resources/org/hisp/dhis/dashboard/i18n_module.properties	2011-10-26 06:17:34 +0000
@@ -38,4 +38,5 @@
 reply = Reply
 username = Username
 user_roles = User roles
-meta_data = Meta data
\ No newline at end of file
+meta_data = Meta data
+sending_message = Sending message
\ No newline at end of file

=== modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/message.js'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/message.js	2011-10-06 15:39:08 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/message.js	2011-10-26 06:17:34 +0000
@@ -69,6 +69,9 @@
 		return false;
 	}
 	
+	$( "#replyButton" ).attr( "disabled", "disabled" );
+	setHeaderWaitMessage( i18n_sending_message );
+	
 	$.postUTF8( "sendReply.action", { id:id, text:text }, function() {
 		window.location.href = "readMessage.action?id=" + id;
 	} );

=== modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/readMessage.vm'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/readMessage.vm	2011-10-06 15:39:08 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/readMessage.vm	2011-10-26 06:17:34 +0000
@@ -1,6 +1,7 @@
 <script type="text/javascript">
 var i18n_sender = '$encoder.jsEscape( $i18n.getString( "sender" ), "'")';
 var i18n_enter_text = '$encoder.jsEscape( $i18n.getString( "enter_text" ), "'")';
+var i18n_sending_message = '$encoder.jsEscape( $i18n.getString( "sending_message" ), "'")';
 </script>
 
 <div id="senderInfo" style="display:none" class="page">
@@ -62,5 +63,5 @@
 
 <div>
 <textarea id="text" name="text" style="width:495px;height:125px"></textarea><br>
-<input type="button" value="$i18n.getString( 'reply' )" onclick="sendReply()" style="width:120px">
+<input type="button" id="replyButton" value="$i18n.getString( 'reply' )" onclick="sendReply()" style="width:120px">
 </div>
\ No newline at end of file