Commit c5044b85 authored by nextime's avatar nextime

Fix a regression in the gui about notifications

parent 03539fc0
<?
$GUIDEBUG=FALSE;
//$GUIDEBUG=TRUE;
$GUIDEBUG=TRUE;
function getBaseGuiPath()
......
......@@ -405,6 +405,8 @@
$.get("/rest/v1.2/notifications/json", function(r){
for(i=0;i<r.data.length;i++)
{
console.debug(r.data[i]);
console.debug($("#notifications"));
$("#notifications").prepend(notifylistitem(r.data[i].message, r.data[i].source, r.data[i].id, r.data[i].added));
}
});
......
......@@ -27,10 +27,7 @@ if($_DOMOTIKA['gui_theme']=='dmblack')
<div id="notifypanel" class="panel panel-theme-<?=$_DOMOTIKA['gui_theme']?> notifypanel text-on-white-theme-<?=$_DOMOTIKA['gui_theme']?>">
<div class="panel-heading panel-head-theme-<?=$_DOMOTIKA['gui_theme']?>"><h4>Notifications<i class="glyphicon glyphicon-remove pull-right" id="notify-removeall"></i></h4></div>
<div class="notifylist">
<div class="list-group theme-<?=$_DOMOTIKA['gui_theme']?>" data-snap-ignore="true">
<div class="list-group-item">
AAAA
</div>
<div id="notifications" class="list-group theme-<?=$_DOMOTIKA['gui_theme']?>" data-snap-ignore="true">
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment