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

[address book] modification: nav icon, group owner

This commit is contained in:
llj
2018-04-20 11:22:26 +08:00
parent 5d2aa8af05
commit 30c0636791
5 changed files with 23 additions and 41 deletions

View File

@@ -13,7 +13,7 @@ define([
id: 'address-book',
template: _.template($("#address-book-tmpl").html()),
groupAddFormTemplate: _.template($("#group-add-form-tmpl").html()),
groupAddFormTemplate: _.template($("#address-book-group-add-form-tmpl").html()),
initialize: function() {
this.groupCollection = new GroupCollection();
@@ -52,18 +52,9 @@ define([
$form.modal();
$('#simplemodal-container').css({'height':'auto'});
$('[name="group_owner"]', $form).select2($.extend(
Common.contactInputOptionsForSelect2(), {
width: '268px',
containerCss: {'margin-bottom': '5px'},
maximumSelectionSize: 1,
placeholder: gettext("Search user or enter email and press Enter"), // to override 'placeholder' returned by `Common.conta...`
formatSelectionTooBig: gettext("You cannot select any more choices")
}));
$form.submit(function() {
var group_name = $.trim($('[name="group_name"]', $form).val());
var group_owner = $.trim($('[name="group_owner"]', $form).val());
var group_owner = 'system admin';
var $error = $('.error', $form);
var $submitBtn = $('[type="submit"]', $form);