Projet

Général

Profil

0001-js-remove-traces-of-removed-parameters-cell-39315.patch

Frédéric Péters, 27 janvier 2020 19:09

Télécharger (1,53 ko)

Voir les différences:

Subject: [PATCH] js: remove traces of removed parameters cell (#39315)

 combo/public/static/js/combo.public.js | 21 ---------------------
 1 file changed, 21 deletions(-)
combo/public/static/js/combo.public.js
94 94
      combo_load_cell($elem);
95 95
    });
96 96
  }
97
  if (window.history.pushState && $('.parameterscell').length > 0) {
98
      /* set initial state */
99
      window.history.replaceState("reload", "", window.location.href);
100
      $(window).on('popstate', function (event) {
101
        if (event.originalEvent.state == "reload") {
102
          combo_refresh_ajax_cells();
103
        }
104
      });
105
  }
106
  $(document).on('change', '.combo-parameters-cell-form select', function (e) {
107
    var $target = $(e.target);
108
    var value = $target.val();
109
    var name = $target[0].name;
110
    var new_qs = combo_modify_query_string(name, value);
111
    if (window.history.pushState) {
112
        window.history.pushState("reload", "", window.location.pathname + new_qs);
113
        combo_refresh_ajax_cells();
114
    } else {
115
        window.location.search = new_qs;
116
    }
117
  });
118 97

  
119 98
  $(document).on('click', '.more-items a', function() {
120 99
    $(this).parent().hide();
121
-