Mike Jolley
d5409f5b5e
Merge conflicts
2015-10-08 13:28:25 +01:00
Mike Jolley
0197a99065
Merge branch 'issue/8587'
...
Conflicts:
assets/css/admin.css
assets/css/woocommerce.css
includes/admin/class-wc-admin-assets.php
includes/admin/settings/views/html-settings-tax.php
2015-10-08 13:26:52 +01:00
Mike Jolley
8ee479afd7
Remove unused input
2015-10-08 13:25:01 +01:00
Mike Jolley
ac02ec290a
Improved styling and wording
2015-10-08 13:18:00 +01:00
Claudio Sanches
91c30310ee
Fixed stock email recipient description typo, closes #9199
2015-09-22 13:06:10 -03:00
Florian Ludwig
35655f8544
Fixed all inefficient selector usages
...
Use find for more efficient selectors - more information on e.g.
https://24ways.org/2011/your-jquery-now-with-less-suck/
2015-09-07 19:51:10 +02:00
Caleb Burks
c53248896e
Allow for multiple email recipients
...
Allow multiple emails to be used for the low stock / out of stock email.
2015-09-01 07:11:41 -05:00
Mike Jolley
5e984faebc
Allow HTML in store notice.
2015-08-24 16:15:16 +01:00
George Stephanis
81804d8d3b
Don't show the `pre` displaying the changes by default.
2015-08-14 11:07:35 -04:00
George Stephanis
2aa1650f54
Rearrange things to get ajax working.
...
Spread them out throughout WooCommerce.
2015-08-13 17:49:59 -04:00
George Stephanis
ec287f116f
Add ajax submission processing.
...
Not quite finished yet, as the add_action isn’t catching.
2015-08-13 16:57:54 -04:00
George Stephanis
3a87b98ba6
Rewrite onAddNewRow for Backbone models.
2015-08-13 14:10:47 -04:00
George Stephanis
b4bd433342
Update the unsaved message to give better data.
2015-08-13 11:58:09 -04:00
George Stephanis
e10064d0fe
Revert back to passing in array values. We can indexBy in JS
2015-08-12 17:17:39 -04:00
George Stephanis
f77b77e335
New template for empty set.
2015-08-12 15:29:17 -04:00
George Stephanis
220550621a
Populate the search field value attribute
2015-08-12 14:38:25 -04:00
George Stephanis
3ee43646ae
Pass in the current page's base url to js for appending.
2015-08-12 14:18:49 -04:00
George Stephanis
4aedda5eb8
Indent the template file properly.
2015-08-12 13:52:04 -04:00
George Stephanis
56218b0824
Add in a notification for unsaved changes.
2015-08-12 12:59:13 -04:00
George Stephanis
8dc2126718
Update the tablenav so the gotos are never out of range.
2015-08-12 12:59:12 -04:00
George Stephanis
837931f99a
Check for truthiness.
...
This avoids silliness where `’0’` evaluates to true. Just parse it as
an int and evaluate that.
2015-08-12 12:59:11 -04:00
George Stephanis
2a0951e4e5
Add more data attributes to the rows and fields.
2015-08-12 12:59:11 -04:00
George Stephanis
1a066ebbe0
Swap to associative array for model.
2015-08-12 12:59:11 -04:00
George Stephanis
ce7cb1f65d
Add a `beforeunload` event to prompt before leaving with unsaved changes.
2015-08-12 12:59:10 -04:00
George Stephanis
8a416f105b
Should be comparing to `'1'` not `1`.
2015-08-12 12:59:10 -04:00
George Stephanis
ddba588987
Migrate the logic and queries out of the template file.
...
Move them where they belong, in the class that calls it.
2015-08-12 12:59:09 -04:00
George Stephanis
5f4cbf78d0
Remove the legacy pagination.
2015-08-12 12:59:09 -04:00
George Stephanis
4df13e6ffb
Don't set them for unexistent rates.
2015-08-12 12:59:09 -04:00
George Stephanis
7bebbaff9e
Pagination now works by first, prev, next, last.
...
Still need to get number based pagination working.
2015-08-12 12:59:09 -04:00
George Stephanis
cf59aec17d
Add in and populate pagination template.
...
The buttons don’t actually do anything yet, but it outputs accurately
and inherits core styles.
2015-08-12 12:59:09 -04:00
George Stephanis
be4c7db8bd
Pass rates in as an array, not an associative array, so it's an Array in js.
2015-08-12 12:59:08 -04:00
George Stephanis
c9a1ba2f39
A default placeholder to show until the rendering code replaces it.
2015-08-12 12:59:08 -04:00
George Stephanis
536402c183
Insert placeholder divs for search and pagination.
2015-08-12 12:59:07 -04:00
George Stephanis
308c7f8676
Whitespace tweaks
2015-08-12 12:59:07 -04:00
George Stephanis
676af1f308
JSHint fixes.
...
The other advantage of splitting js out of php files — jshint can run
on it! :) :) :)
2015-08-12 12:59:07 -04:00
George Stephanis
52d4ea822c
Extract 'No Rows Selected' string
2015-08-12 12:59:07 -04:00
George Stephanis
973348d6ad
Whitespace tidy!
2015-08-12 12:59:06 -04:00
George Stephanis
18293cf365
Extract the autocomplete for states and countries data.
...
Localize it!
2015-08-12 12:59:06 -04:00
George Stephanis
5d5a64753d
Migrate csv columns to localize script.
2015-08-12 12:59:06 -04:00
George Stephanis
39749c4563
Move js in from php template file.
2015-08-12 12:59:06 -04:00
George Stephanis
a63ef876d7
Rename and tweak how js is registered.
...
Thanks @claudiosmweb for the suggestion to match existing conventions.
2015-08-12 12:59:06 -04:00
George Stephanis
0ed5f40fa2
Prefix template name with `wc-`
...
Good call, @mikejolley
2015-08-12 12:59:06 -04:00
George Stephanis
a59ed70774
Big changeover to JS templating for the table.
...
Switching over to building the table with JS — wp.template.
We are now using the same JS template for existing rows and newly
generated rows on the fly — this should simplify things moving forward.
I’ve also started building stuff in an external JS file rather than
straight on the page. Will continue migrating things to it and
localizing as needed.
Saved ( 2 * displayed tax rates - 1 ) db queries per page load by doing
the locations all in one query and then parceling them out in php.
More coming.
2015-08-12 12:59:06 -04:00
George Stephanis
cb4e3cb774
Tax Rate Search: First whack.
...
This is by no means complete. A number of things need to be relocated
and optimized still, but it does a rough search, purely in JS, and
highlights the results in yellow.
2015-08-12 12:59:05 -04:00
Mike Jolley
ddd97b64c3
Remove white space to fix appearance of new rows
...
Fixes #8730
2015-08-06 11:38:46 +01:00
Shiva Poudel
0d1c2dc4dc
Fix - calls for esc_*
2015-08-06 02:04:21 +05:45
George Stephanis
95e6b84fbb
Make sure we esc_attr translation results
...
Part 2 of … 2, I think.
2015-08-05 14:15:00 -04:00
George Stephanis
29d9a7da8c
Found two missing `esc_js()` calls as well.
2015-08-05 14:10:10 -04:00
George Stephanis
c7ee929325
Partial _e() => esc_attr_e() changeover.
...
There’s a lot of them, so I’m breaking them into multiple commits.
This is safeguarding stuff in case some translation uses a double
quote, it will no longer risk breaking out of the attribute.
2015-08-05 14:10:09 -04:00
Claudio Sanches
054dfe0c7b
Changed default Underscore's template for wp.template in API Keys
2015-08-05 15:02:55 -03:00