AntonLV 9 лет назад
Родитель
Сommit
1d3e03ea22
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      inc/js/jquery.webForms.js

+ 6 - 4
inc/js/jquery.webForms.js

@@ -70,6 +70,8 @@
                     $('.bx-form-section-content:first', eFormSection).slideDown(function () {
                         eFormSection.removeClass('bx-form-section-hidden');
 
+                        $(this).addWebForms();
+
                         //--- fire custom event 'bx_show'
                         eFormSection.trigger('bx_show');
                     }); 
@@ -107,9 +109,9 @@
             if (this.getAttribute("type") == 'doublerange') {
 
                 var cur = $(this);
-
-                if (cur.hasClass('bx-form-doublerange-processed'))
+                if(!cur.is(':visible') || cur.hasClass('bx-form-doublerange-processed'))
                     return;
+
                 cur.addClass('bx-form-doublerange-processed');
 
                 var $slider = $('<div class="bx-def-margin-right"></div>').insertAfter(cur);
@@ -162,9 +164,9 @@
             else if (this.getAttribute("type") == 'slider') {
 
                 var cur = $(this);
-
-                if (cur.hasClass('bx-form-range-processed'))
+                if(!cur.is(':visible') || cur.hasClass('bx-form-range-processed'))
                     return;
+
                 cur.addClass('bx-form-range-processed');
 
                 var $slider = $('<div class="bx-def-margin-right"></div>').insertAfter(cur)