]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
display_selector now gets updated 5900/head
authorJoe Workman <joe@workmanmail.com>
Mon, 6 Oct 2014 17:08:01 +0000 (10:08 -0700)
committerJoe Workman <joe@workmanmail.com>
Mon, 6 Oct 2014 17:08:01 +0000 (10:08 -0700)
js/foundation/foundation.slider.js

index 40228dbe10eaa06c01c19ad6ceb836172cdb8add..b2f587f818da495c1b7f3e28359960dfc8465b2b 100644 (file)
       }
       $handle.attr('aria-valuenow', value);
 
-      // if (settings.input_id != '') {
-      //   $(settings.display_selector).each(function(){
-      //     if (this.hasOwnProperty('value')) {
-      //       $(this).val(value);
-      //     } else {
-      //       $(this).text(value);
-      //     }
-      //   });
-      // }
+      if (settings.display_selector != '') {
+        $(settings.display_selector).each(function(){
+          if (this.hasOwnProperty('value')) {
+            $(this).val(value);
+          } else {
+            $(this).text(value);
+          }
+        });
+      }
 
     },