From a3e16357ace832f44fe97c7f7d8689222f514dee Mon Sep 17 00:00:00 2001 From: lian Date: Fri, 24 Apr 2015 10:25:47 +0800 Subject: [PATCH] show group avatar --- seahub/templates/libraries.html | 2 +- static/scripts/app/views/top-group-nav.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/seahub/templates/libraries.html b/seahub/templates/libraries.html index e5b3b3c27a..c7d0906135 100644 --- a/seahub/templates/libraries.html +++ b/seahub/templates/libraries.html @@ -235,7 +235,7 @@ app["pageOptions"] = { groups.push({ 'name': '{{group.group_name}}', 'id': '{{group.id}}', - 'avatar': '{% grp_avatar grp.id 36 %}' + 'avatar': '{% grp_avatar group.id 36 %}' }); {% endfor %} return groups; diff --git a/static/scripts/app/views/top-group-nav.js b/static/scripts/app/views/top-group-nav.js index 4ab726b7d6..d85bb0e9ea 100644 --- a/static/scripts/app/views/top-group-nav.js +++ b/static/scripts/app/views/top-group-nav.js @@ -12,7 +12,7 @@ define([ popupTemplate: _.template($('#top-group-nav-tmpl').html()), initialize: function() { - var popup = $(this.popupTemplate({groups: app.pageOptions.top_nav_groups})); + var popup = $(this.popupTemplate({groups: app.pageOptions.top_nav_groups})); this.$el.append(popup); popup.css({'right': ($('#top-nav-grp').outerWidth() - popup.outerWidth())/6 * 5}); this.popup = popup;