1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +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

@@ -45,6 +45,19 @@ define([
var is_encrypted = this.get('encrypted');
var is_readonly = this.get('permission') == "r" ? true : false;
return Common.getLibIconUrl(is_encrypted, is_readonly, size);
},
getIconTitle: function() {
var icon_title = '';
if (this.get('encrypted')) {
icon_title = gettext("Encrypted");
} else if (this.get('permission') == "rw") {
icon_title = gettext("Read-Write");
} else {
icon_title = gettext("Read-Only");
}
return icon_title;
}
});