Remove duplicate event listener #32781
This commit is contained in:
parent
957199c000
commit
1f68173039
|
@ -519,18 +519,6 @@ function select_metatype(elem)
|
|||
$.querywidget.updateSearch();
|
||||
});
|
||||
|
||||
$('option[data-index]').parents('select').change(function() {
|
||||
index = $(this).find('option[data-index]:selected').data('index');
|
||||
if ($('option[value="' + index + '"]:selected').length == 0) {
|
||||
$('.addIndex option[value="' + index + '"]').prop('selected', true);
|
||||
$('.addIndex').trigger('change');
|
||||
var criteria_div = $('option[value="' + index + '"]:selected').parents('select').parent().detach();
|
||||
criteria_div.appendTo('.more-fieldset .criteria-content');
|
||||
criteria_div.find('select.queryindex').prop('disabled', true);
|
||||
$($(this).find('option[data-index]').parents('select').find('option')[0]).prop('selected', true);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#formfield-form-widgets-query').hide();
|
||||
$('#formfield-form-widgets-sort_on').hide();
|
||||
|
|
Reference in New Issue