1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

[select2] modified 'placeholder' text

This commit is contained in:
llj
2015-06-16 19:15:56 +08:00
parent a8fb97bda0
commit 8d8f2e3a39
2 changed files with 4 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ $("#group-member-add, #group-admin-add").click(function() {
$('[name="user_name"]', $('#group-member-add-form, #group-admin-add-form')).select2($.extend({
width: '268px',
placeholder: "{% trans "Search users" %}"
placeholder: "{% trans "Search users or enter emails" %}"
}, userInputOPtionsForSelect2('{% url 'search-user' %}')));
$('#group-member-add-form, #group-admin-add-form').submit(function() {
@@ -214,7 +214,8 @@ $('#group-transfer').click(function() {
});
$('[name="email"]', $('#group-transfer-form')).select2($.extend({
width: '268px',
placeholder: "{% trans "Search user" %}"
maximumSelectionSize: 1,
placeholder: "{% trans "Search user or enter email" %}"
}, userInputOPtionsForSelect2('{% url 'search-user' %}')));
$('#group-transfer-form').submit(function() {

View File

@@ -496,7 +496,7 @@ define([
contactInputOptionsForSelect2: function() {
var _this = this;
return {
placeholder: gettext("Search users"),
placeholder: gettext("Search users or enter emails"),
// with 'tags', the user can directly enter, not just select
// tags need `<input type="hidden" />`, not `<select>`