0001-backoffice-do-not-replace-page-contents-with-unrelat.patch
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 |
- |