Read the custom RSS directly from the settings

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2014-06-01 21:55:10 +02:00
parent 7d4ea57381
commit 38599ec4b9
4 changed files with 17 additions and 12 deletions

View File

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

View File

@@ -150,7 +150,7 @@ $header
<div class="grid-u-1-2">
<if Settings::Get('customer.show_news_feed') == '1'>
<table class="dboarditem full" id="newsfeed" data-url="{$news_feed_url}">
<table class="dboarditem full" id="newsfeed" data-role="customer">
<thead>
<tr>
<th>News</th>