1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 11:27:18 +00:00

[libs] modified ui of 'lib list' & 'lib create'

* removed 'description', added 'size'
This commit is contained in:
llj
2015-04-02 18:51:48 +08:00
committed by Daniel Pan
parent f30cb39ef5
commit 62fe930d3a
16 changed files with 70 additions and 58 deletions

View File

@@ -22,12 +22,12 @@ define([
attrs.id = response.id || response.repo_id;
attrs.name = response.name || response.repo_name;
attrs.desc = response.desc || response.repo_desc;
attrs.size_formatted = response.size_formatted || response.repo_size_formatted;
return attrs;
},
validate: function(attrs, options) {
if (!attrs.name) return gettext("Name is required");
if (!attrs.desc) return gettext("Description is required");
if (attrs.encrypted) {
if (!attrs.passwd1) return gettext("Please enter password");