incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r794857 - /incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html
Date Thu, 16 Jul 2009 21:06:36 GMT
Author: vdichev
Date: Thu Jul 16 21:06:35 2009
New Revision: 794857

URL: http://svn.apache.org/viewvc?rev=794857&view=rev
Log:
Remove resend button after being pressed.

Modified:
    incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html

Modified: incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html?rev=794857&r1=794856&r2=794857&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html (original)
+++ incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html Thu Jul 16 21:06:35
2009
@@ -82,7 +82,10 @@
             newMsg.find('#source').text(msgSource);
             newMsg.find('#reason').text(msgReason);
             newMsg.find('#when').text(msgDateStr);
-            newMsg.find('#resend').attr('onclick', 'javascript:resend_msg(' + cometMsg.id
+ ');');
+            var id = cometMsg.id;
+            newMsg.find('#resend').attr('id', 'resend_' + id).
+              attr('onclick', 'javascript:resend_msg(' + id + ');' +
+                                         'clearResend("resend_' + id + '")');
             for (var tagIndex=0; tagIndex < msgTags.length; tagIndex++) {
               var newTag = tagTemplate.clone(true).attr('id',msgTags[tagIndex]);
               newTag.find('a')
@@ -291,6 +294,10 @@
                       currentConvNumber = 0;
                       document.getElementById('reply-to-div').style.display = "none";
                     }
+                    
+                    function clearResend(id) {
+                      document.getElementById(id).style.display="none"
+                    }
                     // ]]>
                   </script>
                   <lift:UserSnip.postScript />



Mime
View raw message