forked from GNUsocial/gnu-social
Only run the scripts if the user is logged in
This commit is contained in:
parent
4024a5ee65
commit
02240a890f
@ -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();
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user