Skip to content

Commit

Permalink
Tim (PaulT commit): MiscFunctions.js: Set the calendar click and chan…
Browse files Browse the repository at this point in the history
…ge handlers to reference the localStorage DateFormat instead of the element's "alt" attribute value. (Know that this update requires the localStorage change applied with commit 7973)

Signed-off-by: Paul Thursby <[email protected]>
  • Loading branch information
timschofield committed Feb 27, 2018
1 parent 1f2dd1d commit 5a136ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions doc/Change.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
webERP Change Log

17/2/18 Tim (PaulT commit): MiscFunctions.js: Set the calendar click and change handlers to reference the localStorage DateFormat instead of the element's "alt" attribute value. (Know that this update requires the localStorage change applied with commit 7973)
17/2/18 PaulT: header.php: Set the DOCTYPE to html5 declaration format, update the meta tag with Content-Type info, and add localStorage with DateFormat and Theme for upcoming changes to table column sorting and calendar handling improvements.
17/2/18 PaulT: CustomerAllocations.php: Minor code shuffle to fix view page source message "Start tag 'div' seen in 'table'" reported in Firefox.
17/2/18 PaulT: Customers.php, ShopParameters.php: Fix view page source message "No space between attributes" reported in Firefox.
Expand Down
8 changes: 4 additions & 4 deletions javascripts/MiscFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ iF.focus();
}

function clickDate() {
Calendar(this.name, this.alt);
Calendar(this.name, localStorage.DateFormat);
}

function changeDate() {
isDate(this.value, this.alt);
isDate(this.value, localStorage.DateFormat);
}

function SortSelect() {
Expand Down Expand Up @@ -368,8 +368,8 @@ function initial() {
var ds=document.getElementsByTagName("input");
for(i=0;i<ds.length;i++) {
if(ds[i].className=="date") {
ds[i].onclick=clickDate;
ds[i].onchange=changeDate;
ds[i].onclick = clickDate;
ds[i].onchange = changeDate;
}
if(ds[i].getAttribute("data-type") == 'no-illegal-chars') ds[i].pattern="(?!^ +$)[^?\'\u0022+.&\\\\><]*";
if(ds[i].className=="number") ds[i].onkeypress=rTN;
Expand Down

0 comments on commit 5a136ea

Please sign in to comment.