Projet

Général

Profil

0001-backoffice-do-not-replace-page-contents-with-unrelat.patch

Frédéric Péters, 20 décembre 2021 19:54

Télécharger (1,48 ko)

Voir les différences:

Subject: [PATCH] backoffice: do not replace page contents with unrelated
 contents (#58784)

 wcs/qommon/static/js/wcs.listing.js | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
wcs/qommon/static/js/wcs.listing.js
158 158
        $('#multi-actions div.buttons').replaceWith($html.find('div.buttons'));
159 159
        $('#listing').replaceWith($listing);
160 160
        $('#page-links').replaceWith($html.find('#page-links'));
161
      } else {
161
      } else if ($html.is('#listing')) {
162 162
        $('#page-links').remove();
163 163
        $('#listing').replaceWith($listing);
164
      }
165
      $('#statistics').replaceWith($html);
166
      if (typeof(wcs_draw_graphs) !== 'undefined') {
167
        wcs_draw_graphs();
164
      } else if ($html.is('#statistics')) {
165
        $('#statistics').replaceWith($html);
166
        if (typeof(wcs_draw_graphs) !== 'undefined') {
167
          wcs_draw_graphs();
168
        }
169
      } else {
170
        // no appropriate content, do not replace.
171
        return;
168 172
      }
169 173
      prepare_page_links();
170 174
      prepare_row_links();
171
-