projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'xorg/1.0.2/master' into xorg/master
[platal.git]
/
templates
/
emails
/
send.tpl
diff --git
a/templates/emails/send.tpl
b/templates/emails/send.tpl
index
a8628b4
..
24189b2
100644
(file)
--- a/
templates/emails/send.tpl
+++ b/
templates/emails/send.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-201
0
Polytechnique.org *}
+{* Copyright (C) 2003-201
1
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-150,13
+150,17
@@
saveMessage();
return true;
});
saveMessage();
return true;
});
- $(
document).ready(
+ $(
function() {
// Remove empty options in select (they were added only for HTML
// compatibility).
$('#to_contacts option[value=""]').remove();
$('#cc_contacts option[value=""]').remove();
});
function() {
// Remove empty options in select (they were added only for HTML
// compatibility).
$('#to_contacts option[value=""]').remove();
$('#cc_contacts option[value=""]').remove();
});
+
+ $(function() {
+ $("[name='to']").focus();
+ });
{/literal}
//]]>
</script>
{/literal}
//]]>
</script>
@@
-307,9
+311,9
@@
{literal}
function removeAttachments()
{
{literal}
function removeAttachments()
{
-
Ajax.update_html(null, 'emails/send', null
);
-
document.getElementById('att_already').style.display = 'none'
;
-
document.getElementById('att_form').style.display = ''
;
+
$.xget('email/send'
);
+
$('#att_already').hide()
;
+
$('#att_form').show()
;
}
{/literal}
//]]></script>
}
{/literal}
//]]></script>