mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
PHRAS-941 - fix old jquery selector for selected and checked, fix jquery migrate url call
This commit is contained in:

committed by
Benoît Burnichon

parent
27e35ae1b8
commit
a1c5148700
@@ -162,9 +162,9 @@ function checkBases(bool) {
|
||||
|
||||
var sbas_id = $(this).find('input[name=reference]:first').val();
|
||||
if (bool)
|
||||
$(this).find(':checkbox').attr('checked', 'checked');
|
||||
$(this).find(':checkbox').prop('checked', true);
|
||||
else
|
||||
$(this).find(':checkbox').removeAttr('checked');
|
||||
$(this).find(':checkbox').prop('checked', false);
|
||||
});
|
||||
|
||||
checkFilters(true);
|
||||
@@ -402,8 +402,8 @@ function reset_adv_search() {
|
||||
$("option.default-selection", fieldsSort).prop("selected", true);
|
||||
$("option.default-selection", fieldsSortOrd).prop("selected", true);
|
||||
|
||||
$('#ADVSRCH_FIELDS_ZONE option').removeAttr("selected");
|
||||
$('#ADVSRCH_OPTIONS_ZONE input:checkbox.field_switch').removeAttr('checked');
|
||||
$('#ADVSRCH_FIELDS_ZONE option').prop("selected", false);
|
||||
$('#ADVSRCH_OPTIONS_ZONE input:checkbox.field_switch').prop("checked", false);
|
||||
|
||||
$("option:eq(0)", dateFilterSelect).prop("selected", true);
|
||||
$('#ADVSRCH_OPTIONS_ZONE .datepicker').val('');
|
||||
|
Reference in New Issue
Block a user