Commit Graph

57 Commits

Author SHA1 Message Date
roykho b78aa4e00a Fix deprecated jQuery removeClass function 2021-04-28 16:22:00 -05:00
Kathy Daring a67def78de Replace jQuery.click() 2021-01-07 15:00:55 -07:00
Roy Ho aa89afcf95
Merge pull request #28332 from woocommerce/update/replace-jquery-click
Replace usages of depracted jQuery.fn.click() event shorthand
2020-12-07 06:03:56 -08: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
Rodrigo Primo 5c8491c862 Remove jQuery code that does nothing
This commit replaces a block of jQuery code that I believe does nothing. I found it while starting the work to make our JS code compatible with jQuery 3 as it uses jQuery.fn.keyup() which has been deprecated.

As far as I can understand, this block of code is supposed to change the focus to the coupon description when the user hits the tab key while the focus is on the title field. It doesn't work because the keyup event is not fired for the tab key. The current behavior is that when the user hits the tab key, the focus changes to the "Generate coupon code" button, and if the tab key is pressed another time, the focus changes to the description text field. Which seems fine to me and that is why I'm suggesting we remove this code instead of fixing it.

I believe it was added in this c15b8e817c commit six years ago and unfortunatelly the commit doesn't provide much information on why it was added.
2020-11-17 14:39:55 -03:00
David Stone 4486f06cda Use keepAlive for better user experience
keepAlive lets the user hover over the tooltip without closing it.
closes # 26555
2020-05-19 14:40:56 -06:00
Mike Jolley 6f04ff1fa0 Replace size with length
Fixes #10444
2016-03-01 13:08:25 +00:00
Claudio Sanches 9865e04c8a Merge pull request #8921 from shivapoudel/wc-tabs-gtm
GTM listener for wc-tabs
2015-09-15 19:49:48 -03:00
Florian Ludwig 2761a42a13 Fixed one more inefficient jQuery selector 2015-09-07 19:53:47 +02:00
Shiva Poudel 5d291495a7 Tweak - GTM listener for wc-tabs using preventDefault() 2015-08-21 21:27:34 +05:45
Mike Jolley 4697f5f600 typo + min 2015-08-17 11:27:11 +01:00
Manos Psychogyiopoulos 9652d881f9 child selector 2015-08-14 09:46:22 +03:00
Manos Psychogyiopoulos a86403f884 toggle metabox classes on boxes added via ajax 2015-08-14 09:38:22 +03:00
Mike Jolley 82f50cedb0 Allow menu_order sorting like in 2.3
Also allow setting manually to allow sorting between pages.

Fixes #8690
2015-07-31 12:39:23 +01:00
Shiva Poudel 2a2867cf51 Tweaks Meta boxes Scripts 2015-06-17 20:15:06 +05:45
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
Mike Jolley 9f8a7d1199 Remove datepicker icon's and use focus event 2015-01-30 12:54:33 +00:00
Mike Jolley 9852d9c6ec Order data JS select2 + refactor 2015-01-12 15:43:13 +00:00
Mike Jolley 1fa26f1f6e Product searches select2 2015-01-12 11:56:44 +00:00
Mike Jolley 4b7f97c1de Attributes 2015-01-09 16:53:47 +00:00
James Koster e27d4afee1 data tabs tweaks. #6562 2014-10-17 14:50:23 +01:00
claudiosmweb 04e8fbcb5e added new add products order items action 2014-07-16 15:11:48 -03:00
Mike Jolley c15b8e817c split up meta box scripts 2014-07-08 14:14:41 +01:00
Mike Jolley 2282d76efb More UI / Split up meta box scripts 2014-07-08 14:14:29 +01:00
Mike Jolley 5c0ea16a39 More refund UI -show qty boxes and totals 2014-07-08 10:51:10 +01:00
Mike Jolley fdccaa21d3 Rough, non-functioning example of the UI for refund total and add items in the order items panel
#3164
2014-07-07 16:45:08 +01:00
Mike Jolley 63c0b75972 Conditional is no longer required 2014-06-24 13:00:21 +01:00
Mike Jolley 7591e07d81 Field show/hide options for stock fields and variations 2014-06-19 16:17:43 +01:00
Mike Jolley 93778e72b0 Tax class fixes + notices 2014-06-13 15:53:59 +01:00
Mike Jolley 8007e4c102 Fix encoding issue with attribute values and move variation data to tooltip Closes #5169 2014-03-20 15:47:52 +00:00
splashingpixels 0fda637dd9 lingering tooltip after gallery image delete fixes #5124 2014-03-13 21:27:18 -07:00
Mike Jolley c01022f189 Fix variable product add file button after adding a new variation Closes #4994 2014-03-03 12:09:43 +00:00
Mike Jolley 1ad036ebfb Fix multiple image selection for product gallery Closes #4751 2014-02-13 10:37:02 +00:00
Mike Jolley aa0842a2a6 Fix manual order calculation when using non-standard decimal points Closes #4742 2014-02-12 15:01:56 +00:00
Vit Rozkovec 17a02b71c0 Update meta-boxes.js
Add filter options to product gallery images selector to make visible filters of plugins such as the Enhanced Media Library
2014-01-08 01:28:39 +01:00
Gerhard 903af259e0 refactor inline product images js 2013-11-28 14:37:44 +02:00
Gerhard 238becb050 Refactor order notes inline js 2013-11-28 14:03:29 +02:00
Gerhard 06020f4bd5 Move all download permissions inline js to meta-boxes.js 2013-11-27 16:03:04 +02:00
Gerhard 6300e65582 Make downloadable product dropdown ajaxy, as per #4211 2013-11-26 15:54:34 +02:00
Mike Jolley 8e7e75fc83 Add order item meta correct ajax hook 2013-11-25 16:30:12 +00:00
Mike Jolley fc87619d4c Correct add order item ajax event 2013-11-25 16:26:07 +00:00
Coen Jacobs f7df17db1c Order functions woocommerce to wc refactor 2013-11-25 14:54:52 +01:00
Mike Jolley ea05881af9 Conflicts 2013-11-12 17:46:22 +00:00
Mike Jolley 3fd02a57d0 Locales - store standardised values, and display using locale in admin #3862 2013-11-12 17:43:30 +00:00
James Koster f50e741397 fix handledivs in meta boxes #4042 2013-11-12 17:01:13 +00:00
Scott Basgaard 5b4ef0b8bd Class name consistency for woocommerce_attributes > product_attributes. See #4019 2013-11-01 13:06:14 -04:00
Mike Jolley 0d8d95e8e6 total calcs 2013-10-24 13:41:42 +01:00
Mike Jolley 51aba21d76 Rounding + precision for taxes. Store unrounded. Round down (for the moment) for taxes 2013-10-24 13:15:42 +01:00
Mike Jolley 5d2e1ac031 Refactor coupon code so coupons get the actual discount amount, redone edit coupon screen with tabs, added coupon item limits which Closes #3902 2013-10-18 18:10:58 +01:00