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 />