Added a lot of functionality; Fixed a large number of bugs; Removed Bootstrap from the mix and replaced it with SimpleGrid and some choice bits from the bootstrap system; Pricing, Sales, and Product management all now function at basic levels.
This commit is contained in:
9
imports/util/polyfills/date.js
Normal file
9
imports/util/polyfills/date.js
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// Add a method to get a timezone adjusted date for an input field that is a date picker.
|
||||
// Use $('input[name="date"]').val(new Date().toDateInputValue()) to set the date of the input field.
|
||||
//
|
||||
Date.prototype.toDateInputValue = (function() {
|
||||
let local = new Date(this);
|
||||
local.setMinutes(this.getMinutes() - this.getTimezoneOffset());
|
||||
return local.toJSON().slice(0,10);
|
||||
});
|
||||
Reference in New Issue
Block a user