forked from GNUsocial/gnu-social
Separated actions that's particular to the notice stream pages into
its own function. It can be reused whenever the common behaviours needs to be initialized.
This commit is contained in:
parent
686c2e5e06
commit
b8b4d3d2f2
14
js/util.js
14
js/util.js
@ -370,10 +370,10 @@ var SN = { // StatusNet
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
$(document).ready(function(){
|
||||
Init: {
|
||||
Notices: function() {
|
||||
if ($('body.user_in').length > 0) {
|
||||
$('.'+SN.C.S.FormNotice).each(function() {
|
||||
SN.U.FormNoticeXHR($(this));
|
||||
@ -396,5 +396,13 @@ $(document).ready(function(){
|
||||
}
|
||||
|
||||
SN.U.NoticeAttachments();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$(document).ready(function(){
|
||||
if ($('#content .notices').length >0) {
|
||||
SN.Init.Notices();
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user