Make PMA_init_slider idempotent
This commit is contained in:
@@ -2414,6 +2414,8 @@ function PMA_set_status_label(id) {
|
|||||||
*/
|
*/
|
||||||
function PMA_init_slider() {
|
function PMA_init_slider() {
|
||||||
$('.pma_auto_slider').each(function(idx, e) {
|
$('.pma_auto_slider').each(function(idx, e) {
|
||||||
|
if ($(e).hasClass('slider_init_done')) return;
|
||||||
|
$(e).addClass('slider_init_done');
|
||||||
$('<span id="anchor_status_' + e.id + '"><span>')
|
$('<span id="anchor_status_' + e.id + '"><span>')
|
||||||
.insertBefore(e);
|
.insertBefore(e);
|
||||||
PMA_set_status_label(e.id);
|
PMA_set_status_label(e.id);
|
||||||
|
Reference in New Issue
Block a user