1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +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

@@ -15,7 +15,7 @@ define([
template: _.template($("#address-book-group-tmpl").html()),
pathTemplate: _.template($("#address-book-group-path-tmpl").html()),
groupAddFormTemplate: _.template($("#group-add-form-tmpl").html()),
groupAddFormTemplate: _.template($("#address-book-group-add-form-tmpl").html()),
addMemberFormTemplate: _.template($('#add-group-member-form-tmpl').html()),
initialize: function() {
@@ -77,18 +77,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);

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);