Initial version of newsfeed in admin dashboard

This commit is contained in:
BNoiZe
2013-11-15 22:11:25 +01:00
parent f1cfe41d07
commit c2bae1f25a
4 changed files with 78 additions and 0 deletions

View File

@@ -31,6 +31,14 @@ $(document).ready(function() {
if (snheight > mainheight) {
$('#maincontent').height(snheight - 60);
}
// Load Newsfeed
var ajax_load = "<div id='newsitem'>Loading newsfeed...</div>";
$("#newsfeed").html(ajax_load).load("lib/ajax.php?action=newsfeed", function() {
if ($("#newsfeed").html() != "") {
$("#newsfeed").slideDown();
}
});
// this is necessary for the special setting feature (ref #1010)
$.getQueryVariable = function(key) {