1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

[lib list] modification about 'icon_title'

This commit is contained in:
llj
2016-03-14 12:15:28 +08:00
parent 0931bd0103
commit 6f0fcd6cb1
6 changed files with 31 additions and 36 deletions

View File

@@ -18,7 +18,10 @@ define([
var obj = this.model.toJSON();
var icon_size = Common.isHiDPI() ? 96 : 24;
var icon_url = this.model.getIconUrl(icon_size);
_.extend(obj, { 'icon_url': icon_url });
_.extend(obj, {
'icon_url': icon_url,
'icon_title': this.model.getIconTitle()
});
this.$el.html(this.template(obj));
return this;
},