From: <tu...@us...> - 2018-02-18 01:29:22
|
Revision: 7974 http://sourceforge.net/p/web-erp/reponame/7974 Author: turbopt Date: 2018-02-18 01:25:58 +0000 (Sun, 18 Feb 2018) Log Message: ----------- 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) Modified Paths: -------------- trunk/doc/Change.log trunk/javascripts/MiscFunctions.js Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2018-02-17 19:26:16 UTC (rev 7973) +++ trunk/doc/Change.log 2018-02-18 01:25:58 UTC (rev 7974) @@ -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. Modified: trunk/javascripts/MiscFunctions.js =================================================================== --- trunk/javascripts/MiscFunctions.js 2018-02-17 19:26:16 UTC (rev 7973) +++ trunk/javascripts/MiscFunctions.js 2018-02-18 01:25:58 UTC (rev 7974) @@ -282,11 +282,11 @@ } 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() { @@ -368,8 +368,8 @@ 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; |