diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-25 11:10:49 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-25 11:10:49 -0700 |
commit | 69f06134737fb75b6bd6208f49be284d97d0635e (patch) | |
tree | 19de4f957184d66ef9ea9d847d3a0f9dc985b7ab /js/util.js | |
parent | 638905c270824b3c0e673ae9872937c06fbd862e (diff) | |
parent | bebe7b99f9d430369c1caf84c78025df6230929e (diff) |
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into 0.8.x
Diffstat (limited to 'js/util.js')
-rw-r--r-- | js/util.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js index 221c85120..9156045bb 100644 --- a/js/util.js +++ b/js/util.js @@ -233,6 +233,7 @@ $(document).ready(function(){ $("#form_notice").each(addAjaxHidden); NoticeReply(); NoticeAttachments(); + NoticeDataAttachSelected(); }); function NoticeReply() { @@ -310,3 +311,11 @@ function NoticeAttachments() { } ); } + +function NoticeDataAttachSelected() { + $('#notice_data-attach').change(function() { + S = '<div id="notice_data-attach_selected" class="success">'+$(this).val()+'</div>'; + NDAS = $('#notice_data-attach_selected'); + (NDAS.length > 0) ? NDAS.replaceWith(S) : $('#form_notice').append(S); + }); +} |