You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
582 B
18 lines
582 B
5 years ago
|
$(document).on('turbolinks:load', function() {
|
||
|
if ($('body.admins-identity-authentications-index-page').length > 0) {
|
||
|
var $searchFrom = $('.identity-authentication-list-form');
|
||
|
|
||
|
$searchFrom.on('click', '.search-form-tab', function(){
|
||
|
var $link = $(this);
|
||
|
|
||
|
$searchFrom.find('input[name="keyword"]').val('');
|
||
|
$searchFrom.find('select[name="status"]').val('processed');
|
||
|
|
||
|
if($link.data('value') === 'processed'){
|
||
|
$searchFrom.find('.status-filter').show();
|
||
|
} else {
|
||
|
$searchFrom.find('.status-filter').hide();
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
})
|