js: remove traces of removed parameters cell (#39315)
This commit is contained in:
parent
baab48cd97
commit
01e435d8f5
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue