Make PMA_init_slider idempotent

This commit is contained in:
Michal Čihař
2011-02-08 12:07:25 +01:00
parent 5b8b8b5bba
commit a22f7aaf63

View File

@@ -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');
$('<span id="anchor_status_' + e.id + '"><span>')
.insertBefore(e);
PMA_set_status_label(e.id);