Commit Graph

19 Commits

Author SHA1 Message Date
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
Claudio Sanches 69552d265d Fixed select 2 formatSelectionTooBig(), closes #7640 2015-03-05 14:55:41 -03:00
Mike Jolley 6658c88adc Add args to correct scripts
Fixes #7610. @claudiosmweb
2015-03-03 10:58:10 +00:00
James Koster f49ae4ce35 state select. closes #7316 2015-02-10 09:45:52 +00:00
Mike Jolley 1ae1c7a975 Trigger change event to clear state box. Closes #7240 2015-01-30 10:58:53 +00:00
devin dfecc22126 Removed .change method for .on( 'change') so that if this field is ever replaced via ajax then the country select still works as expected 2015-01-28 16:42:11 -08:00
Claudio Sanches ab3553a6fd Select2 translatable, closes #7159 2015-01-19 17:31:22 -02:00
Mike Jolley 4e7e4d399e Work around 1px incorrect offset on frontend. Closes #7116 2015-01-19 15:09:41 +00:00
Mike Jolley a3cfea8e5d Only apply to visble select boxes Closes #7127 2015-01-19 13:07:06 +00:00
Mike Jolley 0fdd24c526 Select2 frontend 2015-01-12 16:16:13 +00:00
Mike Jolley 9852d9c6ec Order data JS select2 + refactor 2015-01-12 15:43:13 +00:00
Mike Jolley fe34eb7bf8 Fix state box by seeing if states is empty object 2014-12-10 14:44:59 +00:00
Mike Jolley e6b94e486b Leave postcode before city swapping to JS
Fixes #6842
2014-12-09 09:07:28 +00:00
splashingpixels 880d655539 frontend country-select jshinted and coding standards 2014-03-18 20:51:37 -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
Mike Jolley bc779e5e2b Trigger change for country fields Closes #4546 2014-01-21 11:54:03 +00: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 03af136986 Separate ship to options from sell to. Closes #3215. 2013-08-02 16:54:28 +01:00
Mike Jolley 4f0320fdb2 Refactor frontend scripts #3165 2013-06-11 13:31:41 +01:00