Init notice_data-attach UI for form_notice

This commit is contained in:
Sarven Capadisli
2009-06-05 00:00:04 -04:00
parent 4f5630099f
commit b708b81065
4 changed files with 23 additions and 12 deletions

View File

@@ -17,17 +17,6 @@
*/
$(document).ready(function(){
$('input#notice_data-attach').toggle();
$('label[for=notice_data-attach]').text('Upload a file as an attachment?');
$('label[for=notice_data-attach]').click(function () {
if ('Upload a file as an attachment?' == $(this).text()) {
$(this).text('Upload: ');
$('input#notice_data-attach').slideDown('fast');
} else {
$('input#notice_data-attach').slideUp('fast', function() {$('label[for=notice_data-attach]').text('Upload a file as an attachment?');});
}
});
// count character on keyup
function counter(event){
var maxLength = 140;