Allow admin's to add themselves as an owner.
This commit is contained in:
Родитель
b2dcabb648
Коммит
7b3a2133fa
|
@ -47,7 +47,7 @@
|
|||
<tr>
|
||||
<td colspan="4">
|
||||
<input id="contributor-ac" class="long" data-src="{{ url('users.ajax') }}"
|
||||
data-self="{{ amo_user.id }}"
|
||||
data-owner="{{ collection.owner_id }}"
|
||||
placeholder="{{ _('Enter the email address of the contributor to add') }}" />
|
||||
<button id="contributor-ac-button">
|
||||
{{ _('Add Contributor') }}
|
||||
|
|
|
@ -448,7 +448,7 @@ if ($('body.collections-contributors')) {
|
|||
e.preventDefault();
|
||||
var email = $('#contributor-ac').val();
|
||||
var src = $('#contributor-ac').attr('data-src');
|
||||
var my_id = $('#contributor-ac').attr('data-self');
|
||||
var my_id = $('#contributor-ac').attr('data-owner');
|
||||
|
||||
// TODO(potch): Add a fancy failure case.
|
||||
$.get(src, {q: email}, function(d) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче