Fix tooltip in form

Change form_file
This commit is contained in:
chris committed 2013-07-22 20:54:40 +08:00
1 parent de6ce0073f
commit 0d0f85e7ad
11 files changed
+57 -71

No files matched your search

@@ -4,7 +4,12 @@ $(function () {
$type = ['pdf', 'psd', 'ai', 'fla', 'swf', 'in', 'acc', 'do', 'xl', 'pp', 'zip', 'rar', '7z', 'txt', 'jp', 'gif', 'png', 'mp3', 'wav'];
$fileType.each(function (i) {
var $fileTypeHref = $(this).children('a').attr('href');
var $fileTypeHref = null;
if($(this).children('a').length) {
$fileTypeHref = $(this).children('a').attr('href');
} else {
$fileTypeHref = $(this).attr('href');
};
$fileTypeHref = $fileTypeHref.split("/");
$fileTypeHref = $fileTypeHref[$fileTypeHref.length-1];
@@ -21,8 +26,8 @@ $(function () {
$fileType.eq(i).addClass('type-audio');
} else {
$fileType.eq(i).addClass('type-'+type);
}
}
})
};
};
});
});
});