Kathy Daring
afd164e271
revert 0ccff4dda5
. restore jQuery .focus()
2021-02-02 13:38:48 -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
a67def78de
Replace jQuery.click()
2021-01-07 15:00:55 -07:00
Rodrigo Primo
23af5478ec
Fix JS coding standards
2020-12-05 11:11:56 -03: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
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
Hayden Whiteman
3fca3caf1d
Fix #27413
2020-08-22 19:35:13 +12: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
Christopher Allford
0d6675b490
Corrected ESLint violations in JS files
2020-05-04 20:49:29 -07:00
Paul Dechov
7f65a33fe8
Honor tax rounding preference in edit item and refund flows
...
The default value ('no') of the setting to round taxes at subtotal was not being honored on the Edit Order screen, which resulted in off-by-one discrepancies between the checkout item total and the edited or refunded item total.
This change is to round to the proper precision (w.r.t. the 'woocommerce_tax_round_at_subtotal' setting) for the default value of the form, as well as when the values are dynamically recomputed.
2019-11-25 17:49:43 +05:30
Gerhard
02f9c7c8ff
Use strict checking
2019-08-02 14:55:17 +02:00
Gerhard
34e883ce81
Apply patch by @dtwist
2019-08-02 14:19:37 +02:00
Hardik Thakkar
27689ba0ca
Fixed #23870
2019-08-02 14:10:39 +02:00
Peter Fabian
9671810159
Added event to track `Add item(s)` button click.
2019-06-27 13:22:19 +02:00
Peter Fabian
7b03fe62f3
Added event to track `Add fee` button click and Cancel in the prompt.
2019-06-27 13:21:37 +02:00
Peter Fabian
90c0954d21
Renamed add_fee event to added_fee.
...
Makes it consistent with e.g. coupon addition tracks.
2019-06-27 13:20:03 +02:00
Peter Fabian
7ef4cb637a
Fixed spacing issue.
2019-06-27 13:19:24 +02:00
Peter Fabian
930fd983cb
Merge branch 'add/new-edit-order-tracks' of https://github.com/woocommerce/woocommerce into add/new-edit-order-tracks
2019-06-07 14:59:11 +02:00
Peter Fabian
34c6933586
Added more params to the tracks.
2019-06-07 14:58:55 +02:00
Jeff Stieler
1bd9a7d9a7
Use a consistent tracks event naming scheme.
2019-06-07 12:31:42 +02:00
Peter Fabian
083c616f18
Added tracks to record when order note is added in edit order screen.
2019-06-07 12:04:38 +02:00
Peter Fabian
b880159dbe
Added tracks to record when products, fees, taxes or shipping are added to order in edit order screen.
2019-06-07 11:39:03 +02:00
Jeff Stieler
02785bc14c
Track adding coupons to orders on edit screen.
2019-06-07 11:31:53 +02:00
Jeff Stieler
02a7654532
Fix eslint errors/warnings.
2019-06-07 11:25:39 +02:00
Jeff Stieler
05ad6b260f
Track interaction with the order refund UI.
2019-06-06 18:18:46 +02:00
Peter Fabian
b22c788081
Added tracks for Recalculate button and edit/remove/save line items.
2019-06-06 18:14:21 +02:00
Jeff Stieler
a22c1dabf3
Track when billing or shipping address edit buttons are clicked.
2019-06-06 16:12:09 +02:00
Jeff Stieler
9776cbc2d8
Track order tax column deletion.
2019-06-06 13:18:29 +02:00
Rodrigo Primo
3d12ec4ae2
Remove extra comma to prevent issues with older versions of IE
...
This commit simply removes an extra comma that was added in
52fced8d7a
to prevent issues with older
versions of IE. I found this when running grunt to prepare the 3.6.4
release:
```
Running "jshint:all" (jshint) task
assets/js/admin/meta-boxes-order.js
413 | user_email : user_email,
^ Extra comma. (it breaks older versions of IE)
```
We might want to add jshint to the pre-commit hook and to Travis.
2019-05-27 14:38:54 -03:00
Gerhard Potgieter
b2ed079520
Manual orders coupon usage limits by email ( #23775 )
...
* Add functionality to wp-admin order to check for coupon usage based on email addresses, similar to how WC_Cart handles this seperately, included unit tests.
* Only do the coupon by email usage check if order is from a guest. Fix issue with unit test.
2019-05-27 11:45:29 -03:00
Chirag3119
58c3374276
#23602 - I have fixed issue.
2019-05-03 15:02:55 +05:30
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
f2ca110a46
Add default text using .text()
2019-03-19 16:59:16 +00:00
Mike Jolley
5bb58cc14b
Add props via jquery, not direct
2019-03-19 16:59:08 +00:00
Mike Jolley
143068332d
Pass user ID when adding coupons via admin
2019-03-08 16:14:49 +00:00
Mike Jolley
e830bd739a
Use taxable address when adding/removing coupons
2019-02-21 16:23:20 +00:00
Mike Jolley
5bb5ae6265
Update from master
2019-02-18 16:54:24 +00:00
Mike Jolley
247fd3f610
Update notes with response
2019-01-03 13:37:32 +00:00
Mike Jolley
5ef45f51f6
Stock handling in ajax class only
2019-01-03 12:23:49 +00:00
Joshua Flowers
dc12b7d2d6
Use reload instead of assigning href to window.location
2018-12-17 10:27:20 +08:00
Joshua Flowers
a16eba8543
Strip hash from URL that prevents reload on refunds
2018-12-04 10:11:40 +08:00
Diego
b8d2f548f3
Added triggering of JS events on "recalculate" action on Edit Order page
...
* Ref. https://github.com/woocommerce/woocommerce/issues/21181
2018-08-24 09:56:20 +01:00
Mike Jolley
04e304921a
Show stock based on querystring var
2018-06-15 15:11:07 +01:00
Mike Jolley
52854b7690
Add qty to order via modal, include stock qty in formatted name display for reference
2018-06-08 16:18:32 +01:00
Mike Jolley
ce8eabc4a5
Include qty and reduce stock field on add item modal
2018-06-08 12:19:14 +01:00
Mike Jolley
8261cffaa7
Remove bulk actions
2018-06-07 18:01:21 +01:00
Manos Psychogyiopoulos
ee3388762f
Dry up code using 'reloaded_items'
2018-05-15 15:17:11 +03:00
Manos Psychogyiopoulos
285a86c3d4
Add 'wc_order_items_reload' and 'wc_order_items_reloaded' event listeners
2018-05-15 15:16:21 +03:00