From a22f7aaf63f488ba0477daebb1afc0c3577b8d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 8 Feb 2011 12:07:25 +0100 Subject: [PATCH] Make PMA_init_slider idempotent --- js/functions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/functions.js b/js/functions.js index f1f0e2271..4fcfb1d72 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2414,6 +2414,8 @@ function PMA_set_status_label(id) { */ function PMA_init_slider() { $('.pma_auto_slider').each(function(idx, e) { + if ($(e).hasClass('slider_init_done')) return; + $(e).addClass('slider_init_done'); $('') .insertBefore(e); PMA_set_status_label(e.id);