Commit Graph

57 Commits

Author SHA1 Message Date
Jonathan Sadowski a95f084d9f Update woocommerce.js to resolve jQuery data change in jQuery 3 2021-04-28 16:22:00 -05:00
roykho a75a3d7176 Update .focus and .toggleClass that were missed 2021-04-28 16:22:00 -05:00
Kathy Daring 80a8d66106 Replace jQuery.submit() 2021-01-07 15:00:14 -07:00
Rodrigo Primo 1fca8bb1b1 Replaces a few more instances of jQuery.fn.click() event shorthand
This commit replaces a few more instances of jQuery.fn.click() event shorthand that were missed in the previous commit. For more information see the commit message for 8ebead165e.
2020-11-18 16:31:17 -03:00
Rodrigo Primo 8ebead165e Replace usages of depracted jQuery.fn.click() event shorthand
This commit replaces all instances in WooCommerce codebase (except included third-party libraries) where jQuery.fn.click( handler ) event shorthand was used. This shorthand was deprecated in jQuery 3.3 (see https://github.com/jquery/jquery/issues/3214). The jQuery documentation was not updated yet (see https://github.com/jquery/jquery-migrate/issues/288 and https://github.com/jquery/api.jquery.com/issues/972).

jQuery.click() was not deprecated and so it was not replaced.
2020-11-18 15:27:46 -03:00
Sagar Tamang ab8ee194c8 Fix: Show password toggle not working in checkout page 2020-04-25 23:37:43 +05:45
Bartosz Drewniak 84e958dbde Fix password visibility toggle (#25624) 2020-02-10 20:30:39 +01:00
BrandynL 608d6628e3 added woocommerce specific css selector to avoid conflicts 2019-12-31 11:10:30 -05:00
Claudio Sanches 0794ffd285 Fixed coding standards 2019-12-04 17:01:59 -03:00
BrandynL 3ed614389f change event to click for better mobile device support 2019-10-28 09:56:20 -04:00
BrandynL 925bad1faf convert array instance to shorthand syntax 2019-10-28 09:35:39 -04:00
BrandynL 6ed7278678 add password hover visibility on password inputs with javascript 2019-10-27 16:56:42 -04:00
Adam Jones 0f7398d607 Fixing an issue with an on-body click triggering on pages that do not contain the referenced span.description element. Wrapped it in an if statement to make sure element exists beforehand. 2019-10-02 15:32:36 +01:00
Gerhard 2b90cf845e Pass event as parameter. 2019-03-18 13:09:38 +02:00
Gerhard 63f8359491 preventDefault when dismissing store notice, this fixes jumping of page to top when clicking store notices at the bottom of the page. 2019-03-18 10:23:25 +02:00
Mike Jolley 1928f34699 Add notice hash to store notice cookie
Closes #21963
2019-02-04 13:18:09 +00:00
Peter Fabian caa978cf2d Use jQuery for scrolling to element for all browsers to avoid special cases. 2018-08-06 19:56:09 +02:00
Mike Jolley 663f7c4a76 click event fallback 2018-06-11 13:16:02 +01:00
Peter Fabian fcad799606 ScrollIntoView excplicitly asked to scroll to center vertically.
Even though this should be the default, Firefox defaults to top.
2018-05-09 14:40:21 +02:00
Mike Jolley 860e7a5d23 Merge branch 'master' into update/gdpr-checkout-customizer 2018-04-16 18:02:28 +01:00
Peter Fabian 2baa7fbbdc Added scroll to notices to cart page 2018-04-12 13:34:34 +02:00
Mike Jolley 3bf567279b Improve default appearance of descriptions so they toggle on focus and support HTML. 2018-04-05 16:56:00 +01:00
Mike Jolley ca04ee8e9f Replace 2016-11-22 15:09:37 +00:00
Mike Jolley 400ce650de Compare type 2016-10-08 12:47:26 +01:00
James Koster b8150ec49f Make the Store Notice dismissible.
* Adds new-style css classes to store notice
* Adds a ‘dismiss’ link to the store notice
* Hide the notice when the ‘dismiss’ link is clicked and set a cookie
to keep it hidden
2016-10-07 13:41:13 +01:00
Claudio Sanches eedff144e7 Created assets/js/frontend/password-strength-meter.js #9319 2015-10-09 13:31:47 -03:00
nishitlangaliya f468f16e29 fixes: changes as per suggestion given by claudiosmweb ref #8938 2015-10-09 13:25:47 +05:30
nishitlangaliya a45ef9f814 fixes: done changes using dom operation. ref #8938 2015-10-08 20:14:53 +05:30
Mike Jolley 38dd251f96 geolocation 2015-06-17 14:16:37 +01:00
Mike Jolley b1441c05c1 Move geolocation to separate script 2015-06-17 14:16:35 +01:00
Mike Jolley 9886a805df Fix up standards #7939 2015-06-17 13:59:04 +01:00
Mike Jolley 33c298fea7 Experiment with appending geolocation to query string to prevent caching 2015-06-17 12:12:49 +01:00
Manos Psychogyiopoulos c11399cb52 handle zero min input qty in woocommerce.js 2015-03-10 03:06:17 +02:00
James Koster e856377194 bye bye quantity increments. closes #6752 2014-11-18 13:29:58 +00:00
splashingpixels c5f4120540 frontend woocommerce jshinted and coding standards 2014-03-19 16:02:54 -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
James Koster e934947152 Remove placeholder polyfill. closes #4012 2013-10-28 09:03:03 +00:00
Mike Jolley f8aaef00e4 Replace placeholder script. Closes #3586. 2013-08-13 12:50:47 +01:00
Mike Jolley 4f0320fdb2 Refactor frontend scripts #3165 2013-06-11 13:31:41 +01:00
James Koster d1fbc3b7f1 replaced placeholder plugin
old one no longer in active dev
2013-05-21 12:46:47 +01:00
Mike Jolley ffe064db99 Delegate order by Closes #3080. 2013-05-10 12:47:43 +01:00
James Koster 3ea5afbbc0 Revert "Don't allow decimals in .qty. closes #2773"
This reverts commit 5e377c9f0f.
2013-03-22 20:04:44 +00:00
James Koster 5e377c9f0f Don't allow decimals in .qty. closes #2773 2013-03-22 20:03:07 +00:00
Mike Jolley d403f4d9bc Split out fragment code into wc-cart-fragments Closes #2528 2013-02-26 12:15:12 +00:00
Mike Jolley 3b4e7ac4f8 sessionStorage instead of localStorage 2013-01-29 17:05:25 +00:00
Mike Jolley c21ca1a68c fragment tweak 2013-01-28 12:02:21 +00:00
Mike Jolley fdfa0d6efb QTY Closes #2280. 2013-01-28 11:42:03 +00:00
Mike Jolley b211894d3c Get cart from ajax or local storage to prevent cache 2013-01-28 10:59:24 +00:00
Mike Jolley 0c523d30b1 @coenjacobs See this. Custom ajax handler and cart refresh per page load to get around cache issues. Custom handler foes *feel* a little wrong but since it doesn't load admin, it loads 100% faster. 2013-01-27 18:55:30 +00:00
Mike Jolley 128b333578 Fix checkout field visibility after switching country 2013-01-20 13:10:36 +00:00