diff --git a/users/templates/users/base.html b/users/templates/users/base.html index d4225ce..61388da 100644 --- a/users/templates/users/base.html +++ b/users/templates/users/base.html @@ -606,7 +606,11 @@ function removeNotification(notifyid){ } $(document).ready(function(){ - console.log(); + console.log("{{root}}"); + console.log("{{url}}"); + + + $("#notification_items").html(""); loadUnsendNotifications(); loadUnviewnNotifications(); diff --git a/users/views.py b/users/views.py index 9945ae5..02087ac 100644 --- a/users/views.py +++ b/users/views.py @@ -272,6 +272,8 @@ def dashboard(request): context = { 'active_link' : 'dashboard', + 'root' : settings.MEDIA_ROOT, + 'url' : settings.MEDIA_URL #"systemencode" : storageinfo } # Adding active_link