Mike Jolley
495aac2df1
Remove backslash
2016-03-23 14:28:45 +00:00
gonssal
523ded8358
Fixed password-strength-meter.js' checkPasswordStrength function not being encapsulated into the wrapper
2016-03-21 17:26:33 +01:00
Mike Jolley
699e007659
Wrap export in quotes to preserve commas
...
Fixes #10541
2016-03-14 12:26:18 +00:00
Mike Bronner
de85e5be25
Add tests for localStorage
...
Some spiders will not error out on sessions storage, but will throw an exception on localstorage. For example, my site has been hit with the following almost on an hourly basis:
```
TypeError: Cannot call method 'setItem' of null
1
File https://maureentaylor.com/app/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js line 1 in [anonymous]
```
2016-03-13 08:42:35 -07:00
Mike Jolley
71f32383f8
Comment and minify
2016-03-12 08:37:02 +00:00
Mike Jolley
7e712ee09a
Tweak preserveComments and re-minify
2016-03-12 08:14:37 +00:00
Claudio Sanches
ede64f7aa9
Minify and POT
2016-03-11 14:42:34 -03:00
Claudio Sanches
1aa796390a
Minify
2016-03-10 00:02:50 -03:00
Mike Jolley
25d6a93c07
Merge pull request #10479 from shivapoudel/gtm-listener
...
Tweak - GTM listener for single products tabs
2016-03-07 12:04:38 +00:00
Shiva Poudel
25e1d72017
Tweak - GTM listener for single products tabs, Closes #10478
2016-03-04 23:52:39 +05:45
Justin Shreve
e94a60d4c3
Update minified JS
2016-03-01 11:49:43 -08:00
Justin Shreve
ccb2c90ef3
Update references for the tokenization UI script (hiding/showing inputs) to use the correct file.
2016-03-01 11:49:43 -08:00
Justin Shreve
a2aa20bcb5
Rename payment-gateway JS to tokenization-form.
2016-03-01 11:49:42 -08:00
Justin Shreve
eff4e297f9
First pass at showing saved payment methods on checkout
2016-03-01 11:49:40 -08: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
Kevin Killingsworth
45b2f7eae3
Remove console.log calls
...
Some left-over console log calls were removed.
2016-02-22 11:12:05 -06:00
Kevin Killingsworth
b7f365982e
cart objects: refactor into objects
...
This update actually takes the code and refactors it into
two object handlers, cart and cart_shipping.
Also, more block comments are added to each function.
2016-02-22 10:15:47 -06:00
Kevin Killingsworth
02b7c1edc4
cart objects: Create cart_shipping object.
...
This commit creates a cart shipping object which handles all shipping
code in this file.
2016-02-19 14:33:28 -06:00
Kevin Killingsworth
7c82a6b1f1
cart objects: Add block comments
...
Add block comments to functions in the file.
2016-02-19 14:26:27 -06:00
Kevin Killingsworth
e7fa89cdf9
cart objects: split off events
...
Step one of implementing objects in carts is splitting off
the event handlers to separate named functions.
2016-02-19 14:13:48 -06:00
Justin Shreve
328ad226e8
[2.5] Correct the 'unavailable template' call for variations so the message is displayed correctly, fixing a JS error.
2016-02-17 07:50:38 -08:00
Kevin Killingsworth
7e951afbae
Cart AJAX: Add shipping form support.
...
Add support for making an AJAX call for updating the shipping options.
2016-02-15 10:52:25 -06:00
Kevin Killingsworth
b330813306
Cart AJAX: Clean up form handling for cart form.
...
The coupon and update cart logic was tripping on each other
between the click handling and form submit handling.
This commit combines the event handler, then splits off from there.
2016-02-15 10:27:47 -06:00
Kevin Killingsworth
4b8cf5cd1f
Cart ajax: Fix html5 validation checks for quantities.
...
The form button click event handling was subverting the validation
checks. Moving the event to the actual form submit event fixed it.
2016-02-15 09:53:11 -06:00
Kevin Killingsworth
62c141ff5d
Cart AJAX: Fix block UI for remove item.
...
The JQuery selector was incorrect and needed to go
further up the DOM tree.
2016-02-15 09:41:58 -06:00
Kevin Killingsworth
a8e51cfb66
Style: Add spaces between closing braces and parens.
2016-02-15 08:40:46 -06:00
Kevin Killingsworth
ef4debace7
Cart AJAX: Block form during update
...
Apply the JQuery Block UI to the form during an AJAX update.
Also correct a few small style issues.
2016-02-15 08:10:25 -06:00
Kevin Killingsworth
e416ba0e2b
Cart AJAX: Add cart item remove.
...
Add cart item remove, using same technique as the cart update.
Make the normal call via AJAX and update the HTML afterwards.
2016-02-14 22:55:47 -06:00
Kevin Killingsworth
9a43b897da
Cart AJAX: Add update call.
...
Since the code is built to use a form submit for all the quanitities
already, I just made this an ajax call instead of a whole page call.
The result is the exactly the same and the .woocommerce div is replaced
with the resulting HTML.
2016-02-14 21:57:14 -06:00
Kevin Killingsworth
1c361bb29f
cart.js: Consolidate url calculation.
...
DRY the url calculation code within a single function to make
the code more readable and succinct.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth
30a272e58a
Add remove coupon ajax handling in cart.
...
Add code to handle ajax call for removing a coupon from the cart.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth
191b58eba0
Block cart form while applying coupon.
...
Add code to block the cart form during the apply operation
until completion. Refactor block/unblock into local methods
for reuse.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth
4cc7e99ab7
Add notice to add coupon in cart.
...
Add the notice to when a coupon is added to the cart,
or the error if the coupon was not added for some reason.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth
ce90c440cb
Cart ajax: apply coupon
...
Adds an ajax call for applying coupons while on the cart
screen (not checkout, as it already has this.)
This is the first commit to add ajax calls to the cart update
functions. See issue #6734
2016-02-12 15:43:05 -06:00
Kevin Killingsworth
07db701e91
Add minified js file for add-to-cart-variation.js
...
Adding missing minified version of js file from
commit f1bf89db2b
2016-02-12 09:54:21 -06:00
Mike Jolley
2c86574785
Merge pull request #10328 from KristoferN/single-product-image-alt-tag-content-error
...
Corrected content in alt-tag
2016-02-11 13:17:46 +00:00
Kristofer Norén
f1bf89db2b
Corrected content in alt-tag
...
Previously both the alt-tag and the title-tag of the variations main image used content from variation.image_title. The alt-tag should use variation.image_alt.
2016-02-11 13:40:56 +01:00
Justin Shreve
37ad8ccbed
Minified checkout.js
2016-02-10 10:41:23 -08:00
Justin Shreve
6a8abc9f28
Keep track of terms & conditions state and recheck the box if necessary.
2016-02-10 10:38:39 -08:00
Mike Jolley
4c29b7607f
Show notices on variation button clicks
...
Closes #10281
2016-02-08 16:21:02 +00:00
Mike Jolley
6dd01fc839
Better way to find wrapper for stateboxes
...
Closes #8255
2016-02-08 14:47:42 +00:00
Claudio Sanches
5f2d769567
Minify
2016-02-03 15:02:32 -02:00
Claudio Sanches
2596b888a2
[2.5] Include new triggers when remove and add the password strength meter, closes #10257
2016-02-03 13:24:11 -02:00
Mike Jolley
254c8cf677
Prevent default in variation script
...
Closes #10223
2016-02-01 12:16:17 +00:00
Mike Jolley
089b8aff68
Disable button (again) but not on checkout
2016-01-28 15:53:08 +00:00
Mike Jolley
26a7d04c07
Unused var
2016-01-28 15:38:27 +00:00
Mike Jolley
6a8e89da2f
[2.5] HTML5 validation message on weak password, and append to indicator
2016-01-28 15:36:24 +00:00
Mike Jolley
32b6e05eb1
[2.5] docblock
2016-01-27 11:07:44 +00:00
Mike Jolley
a2843c03c7
[2.5] Added password hint text and error messages
2016-01-27 10:54:03 +00:00