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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user