From: Joe Workman Date: Mon, 6 Oct 2014 17:08:01 +0000 (-0700) Subject: display_selector now gets updated X-Git-Tag: v5.4.6^2~2^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5900%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git display_selector now gets updated --- diff --git a/js/foundation/foundation.slider.js b/js/foundation/foundation.slider.js index 40228dbe1..b2f587f81 100644 --- a/js/foundation/foundation.slider.js +++ b/js/foundation/foundation.slider.js @@ -136,15 +136,15 @@ } $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); + } + }); + } },