Adding a custom newsfeed to the customer-dashboard, fixes #1408

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2014-06-01 18:46:15 +02:00
parent fd3ab6221c
commit 3acfcd4a95
22 changed files with 84 additions and 6 deletions

View File

@@ -28,13 +28,17 @@ $(document).ready(function() {
// Load Newsfeed
var ajax_load = "<div id='newsitem'>Loading newsfeed...</div>";
$("#newsfeeditems").html(ajax_load).load("lib/ajax.php?action=newsfeed", function() {
var url = "";
if (typeof $("#newsfeed").data("url") !== "undefined") {
url = "&url=" + $("#newsfeed").data("url");
}
$("#newsfeeditems").html(ajax_load).load("lib/ajax.php?action=newsfeed" + url, function() {
if ($("#newsfeeditems").html().length > 0) {
$(window).trigger('resize');
$("#newsfeed").slideDown();
}
});
// Enable Infobubbles
$(".tipper").tipper({
direction: "right"