From 7fa7ebc6dc8b09a8e3e9947e117a13dbf989bf24 Mon Sep 17 00:00:00 2001 From: fbormann Date: Fri, 30 Sep 2016 01:11:40 -0300 Subject: [PATCH] update UI properly, now it updates the counter and add the notifications to the bottom #155 #80 --- core/static/js/base/amadeus.js | 6 +++++- core/templates/base.html | 4 ++-- core/templates/notifications.html | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/core/static/js/base/amadeus.js b/core/static/js/base/amadeus.js index 2f407e5..731d026 100644 --- a/core/static/js/base/amadeus.js +++ b/core/static/js/base/amadeus.js @@ -134,6 +134,10 @@ This functions get the next 5 notifications from the user given a "step"(an amou function getNotifications(step){ $.get('/getNotifications', {'steps':step, 'amount': 5}, function(data){ - console.log(data); + $("#notification-dropdown").append(data); + $('#notification-see-more').remove(); + var seemore = '
  • '; + $("#notification-dropdown").append(seemore); + $("#notification-count").text(step+5); }); } diff --git a/core/templates/base.html b/core/templates/base.html index df40728..01ec35a 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -58,14 +58,14 @@