Allow admin's to add themselves as an owner.

This commit is contained in:
Dave Dash 2010-08-26 15:36:15 -07:00
Родитель b2dcabb648
Коммит 7b3a2133fa
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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) {