Only run the scripts if the user is logged in

This commit is contained in:
Sarven Capadisli 2009-10-30 15:48:35 +01:00
parent 4024a5ee65
commit 02240a890f

View File

@ -17,6 +17,7 @@
*/
$(document).ready(function(){
if ($('body.user_in').length > 0) {
if ($('#'+SN.C.S.NoticeDataText).length) {
if (maxLength > 0) {
$('#'+SN.C.S.NoticeDataText).bind('keyup', function(e) {
@ -46,8 +47,11 @@ $(document).ready(function(){
SN.U.FormNoticeXHR();
SN.U.NoticeReply();
SN.U.NoticeAttachments();
SN.U.NoticeDataAttach();
}
SN.U.NoticeAttachments();
});