|
|
@ -25,12 +25,12 @@ $(document).ready(function() {
|
|
|
|
NProgress.done();
|
|
|
|
NProgress.done();
|
|
|
|
setupHoverCards();
|
|
|
|
setupHoverCards();
|
|
|
|
|
|
|
|
|
|
|
|
if (data.url && data.url.match('user/')) {
|
|
|
|
if (data.url && data.url.match('^user/.+/chats')) {
|
|
|
|
setupFavouriteButtonOnProfile();
|
|
|
|
|
|
|
|
} else if (data.url && data.url.match('^chats')) {
|
|
|
|
|
|
|
|
require(['persona/chats'], function(chats) {
|
|
|
|
require(['persona/chats'], function(chats) {
|
|
|
|
chats.init();
|
|
|
|
chats.init();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
} else if (data.url && data.url.match('user/')) {
|
|
|
|
|
|
|
|
setupFavouriteButtonOnProfile();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|