| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/c/o/o/coopiak/amisdesseniors-fr/valence/components/com_community/assets/postbox/js/ |
Upload File : |
window.joms_init_postbox = function() {
require([
'jst',
'sandbox',
'views/postbox/layout',
'views/stream/layout',
'utils/constants'
],
// description
// -----------
function( jst, $, PostboxView, StreamView, constants ) {
function initPostbox() {
var el = $('.joms-postbox'),
postbox;
if ( el.length ) {
postbox = new PostboxView({ el: el });
postbox.render();
postbox.show();
}
}
function initStream() {
var stream = new StreamView();
stream.render();
}
function fetchAllFriends() {
// var url = 'index.php?option=com_community&view=friends&task=ajaxAutocomplete&allfriends=1',
// settings = constants.get('settings') || {},
// data = [];
constants.set( 'friends', 'fetching' );
// if ( settings.isGroup ) url += '&groupid=' + constants.get('groupid');
// else if ( settings.isEvent ) url += '&eventid=' + constants.get('eventid');
var timer = window.setInterval(function() {
if ( window.joms_friends ) {
window.clearInterval( timer );
constants.set( 'friends', window.joms_friends );
}
}, 200 );
}
initPostbox();
initStream();
if ( +window.joms_my_id )
fetchAllFriends();
});
}