js: remove traces of removed parameters cell (#39315)

This commit is contained in:
Frédéric Péters 2020-01-27 19:09:06 +01:00
parent baab48cd97
commit 01e435d8f5
1 changed files with 0 additions and 21 deletions

View File

@ -94,27 +94,6 @@ $(function() {
combo_load_cell($elem);
});
}
if (window.history.pushState && $('.parameterscell').length > 0) {
/* set initial state */
window.history.replaceState("reload", "", window.location.href);
$(window).on('popstate', function (event) {
if (event.originalEvent.state == "reload") {
combo_refresh_ajax_cells();
}
});
}
$(document).on('change', '.combo-parameters-cell-form select', function (e) {
var $target = $(e.target);
var value = $target.val();
var name = $target[0].name;
var new_qs = combo_modify_query_string(name, value);
if (window.history.pushState) {
window.history.pushState("reload", "", window.location.pathname + new_qs);
combo_refresh_ajax_cells();
} else {
window.location.search = new_qs;
}
});
$(document).on('click', '.more-items a', function() {
$(this).parent().hide();