Kathy Daring
afd164e271
revert 0ccff4dda5
. restore jQuery .focus()
2021-02-02 13:38:48 -07:00
Kathy Daring
9b7b72f00a
replace jQuery.bind except in 3rd party assets
2021-02-02 09:38:04 -07:00
Kathy Daring
e6f620d156
Revert "replace jQuery..bind except in 3rd party assets"
...
This reverts commit 61c4e20863
.
2021-01-07 15:16:59 -07:00
Kathy Daring
60f49f25d0
Replace jQuery.change()
2021-01-07 15:08:36 -07:00
Kathy Daring
0ccff4dda5
Repalce jQuery.focus() except in 3rd party assets
2021-01-07 15:06:18 -07:00
Kathy Daring
61c4e20863
replace jQuery..bind except in 3rd party assets
2021-01-07 15:04:26 -07:00
Rodrigo Primo
291884e154
Replace all occurrences of jQuery.parseJSON()
...
jQuery.parseJSON() is deprecated (https://api.jquery.com/jquery.parsejson/ ). This commit replaces all of its occurrences with JSON.parse().
2020-10-22 10:11:27 -03:00
Miguel Pinto
8ff17ddbd2
Add option to override element tag container in checkout forms
2020-02-13 03:11:44 +00:00
justlevine
78ae91a77d
Add input-classes to preserve user defined classes on change
2019-04-22 19:43:41 +03:00
Mike Jolley
308d08f97e
Run grunt tasks
...
Fixes warnings from grunt so files are minified correctly. Copied fixes that went into release branch but not master earlier this week.
2019-03-20 20:08:52 +00:00
Mike Jolley
7c42ac0a29
Also remove hardcoding of attributes on frontend state fields
2019-03-19 16:59:22 +00:00
Mike Jolley
f90f0203b5
Grunt dev
2019-03-15 12:21:51 +00:00
Mike Jolley
406364fefb
Tidyup unused vars
2019-03-06 15:33:20 +00:00
Mike Jolley
9b6ded2cef
Custom init event for state fields
2019-03-06 15:11:39 +00:00
Mike Jolley
afe219d854
Select an option vs state
2019-02-18 11:49:46 +00:00
Mike Jolley
35a01fd06a
Update select placeholders on locale change
2019-01-15 15:50:55 +00:00
Mike Jolley
d83c9c5f5b
When page is ready, make fields update for all country fields
2019-01-14 14:44:54 +00:00
Peter Fabian
11da1898b8
Removed unnecessary form change trigger on load of checkout page.
2018-06-28 18:12:04 +02:00
Peter Fabian
7ffc5a4b51
Made JS to look for closest form-row paragraph instead of parent.
...
As the input/select are now wrapped in span, going to parent brakes the form in some workflows.
2018-04-25 12:46:38 +02:00
claudiulodro
f02c9376c4
Move calls to selectWoo()
2017-06-26 12:44:33 -07:00
Mike Jolley
005bedb7e8
Workaround for loading failed message
2017-04-04 11:13:43 +01:00
Mike Jolley
c1ce490956
Country select
2017-03-17 11:25:53 +00:00
Mike Jolley
114026b0be
Maintain focus after selection
...
Fixes #13300
2017-02-23 10:51:41 +00:00
pierrebuet
41a937041d
Updating the way select2 v4 loads translated strings
...
Correcting Issue #12952 .
In select2 v4 the callback functions used to format the messages have
changed their names and the structure of the options have changed,
using now a „language“ object.
I was not able to find a reference in the select2 v4 code how to format
the number of matches back. Further when using v4 I don’t see any
indication on the number of the number of returned matches, so I
consider the parameter as obsolete.
2017-01-23 22:04:52 +01:00
Mike Jolley
6f04ff1fa0
Replace size with length
...
Fixes #10444
2016-03-01 13:08:25 +00:00
Kevin Killingsworth
7fc0932e33
Fix state input box for cart shipping.
...
Input box wasn't reappearing when switching from a hidden input
to a text input. Changed the JQuery selector to go off the input
type.
2016-02-27 00:50:05 -06:00
Mike Jolley
6dd01fc839
Better way to find wrapper for stateboxes
...
Closes #8255
2016-02-08 14:47:42 +00:00
Mike Jolley
0b6fdf5fe8
Use data-placeholder for selects since placeholder is not to W3C spec
...
Closes #9986
2016-01-06 12:20:06 +00:00
Claudio Sanches
62d879e86c
Fixed all jshint errors #4680
2015-07-10 02:13:30 -03:00
Mike Jolley
6760589381
Tweak code used to get country's statebox
...
Closes #8255
2015-06-01 10:50:16 +01:00
Mike Jolley
6181a061d6
[2.3] Remove minimum results for search to prevent issues with state box
...
Fixes #8002
2015-04-23 15:55:18 +01: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
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