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

[user panel] added 'group owned library' function

This commit is contained in:
llj
2018-05-04 14:40:54 +08:00
parent b87f0312d7
commit 1b6a8479da
9 changed files with 156 additions and 22 deletions

View File

@@ -43,15 +43,22 @@ define([
// Generate the attributes for a new GroupRepo item.
newAttributes: function() {
return {
var data = {
name: $.trim($('input[name=repo_name]', this.$el).val()),
encrypted: $('#encrypt-switch').prop('checked'),
passwd1: $('input[name=passwd]', this.$el).val(),
passwd2: $('input[name=passwd_again]', this.$el).val(),
passwd: $('input[name=passwd]', this.$el).val(),
library_template: $('[name="library_template"]', this.$el).val(),
storage_id: $('[name="storage"]', this.$el).val()
};
if (data.encrypted) {
$.extend(data, {
passwd1: $('input[name=passwd]', this.$el).val(),
passwd2: $('input[name=passwd_again]', this.$el).val(),
passwd: $('input[name=passwd]', this.$el).val()
});
}
return data;
},
// TODO: move to common