Remove allowed users correctly

This commit is contained in:
Aitor Magán 2014-07-18 12:24:34 +02:00
parent ad5ad324b0
commit 7cca101625
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ this.ckan.module('allowed-users', function ($, _) {
$('#field-searchable').prop('disabled', true); //Disable
//Remove previous values
$('#s2id_field-allowed_users_str .select2-search-choice').remove();
$('#field-allowed_users_str').val('');
$('#field-allowed_users_str').select2('val', '');
$('#field-adquire_url').val('');
$('#field-searchable').val('True');
}