Commit Graph

22 Commits

Author SHA1 Message Date
roykho 7dd2be207e
Fix regression of using jQuery ON when bind should be used ref #28822 2021-05-21 08:08:33 -07:00
Jonathan Sadowski a61bd3c99d Update price-slider.js to remove deprecated jQuery bind function 2021-04-28 16:22:00 -05:00
roykho 5c76d8df59
Revert jQuery function change as these are not jQuery objects 2021-02-04 12:36:15 -08:00
Jory Hogeveen 34eb09dfa1
Use `on` instead of `bind`
Bind will be deprecated
2020-10-20 15:56:43 +02:00
Jory Hogeveen 269ca73aa8
Allow re-init of price slider
Use case for when the widget is reloaded using AJAX
2020-10-20 15:56:02 +02:00
Mike Jolley 3a94fc6d00 Introduce steps and cleanup variable names for clarity 2019-01-23 18:29:33 +00:00
Mike Jolley 01696d92b0 Add comments and round to 10 2019-01-23 17:34:51 +00:00
claudiulodro 2dc6f18ab4 Use opacity:0 and fix linted js 2017-09-21 13:24:34 -07:00
Mike Jolley d125739742 fix init 2017-09-16 12:37:29 -07:00
Mike Jolley 7cc931c185 Init price slider after using customizer
Closes #16834
2017-09-16 12:16:43 -07:00
Mike Jolley 0300464613 Use accounting.js in price slider widget 2016-12-20 13:11:09 +00:00
Claudio Sanches 77b2d508b2 Fixed coding standards in assets/js/frontend/price-slider.js 2015-06-29 17:09:34 -03:00
optimalab 9cccf313ba Fixed price-slider.js trigger and fixed js coding standards 2015-06-29 17:07:45 -03:00
Claudio Sanches 1dadbb2842 Fixed coding standards for #7879 2015-04-13 12:37:22 -03:00
Danny van Kooten 88f2e690bb Changing all inefficient selectors of $('body') to $(document.body), which is about 80% faster (and even more on mobile, see https://jsperf.com/jquery-body-vs-document-body-selector/2 ). 2015-04-03 14:21:47 +02:00
splashingpixels b392b49147 frontend price-slider jshinted and coding standards 2014-03-19 15:54:38 -07:00
toddlahman 13c24b410e Removed (document).ready from jQuery scripts
jQuery(document).ready(function($) { is equivalent to calling
jQuery(function($) {.

http://api.jquery.com/ready/
2014-01-30 18:44:17 -08:00
Jared Cobb 9fc47db17f Make frontend scripts safe to run on non WC pages (check for objects)
For a more detailed explaination of why this is helpful, see
Issue #4202. In short, from a dev ops perspective, if we want to build /
concatonate our front end scripts into a single application.js file, we
need to ensure scripts first check for dependent global object helpers
before trying to use them. For example, there are several objects
(created via PHP using `wp_localize_script`) which generate objects such
as `wc_single_product_params`. These objects will not exist on most
other pages, however these scripts attempt to execute code that
references these objects.
2013-12-04 12:15:24 -07:00
Mike Jolley 293c998a1d Set price slider min to min price. Closes #4183 2013-12-03 13:39:02 +00:00
Mike Jolley 71c57ecfd7 Extra trigger for slider 2013-06-06 12:30:55 +01:00
Mike Jolley d0ee67d9e1 Trigger when loading fragments Closes #2985. 2013-04-23 15:37:19 +01:00
Mike Jolley 30b8ddaf1d Split up frontend scripts so they can be loaded when needed. 2012-07-17 15:09:18 +01:00