Permalink
Browse files

an extra parameter added to nuPopupCalendar()

  • Loading branch information...
steven-copley
steven-copley committed Feb 5, 2018
1 parent 22bd7b3 commit 3cd1df63c09affafa2312db9e602e317439054c4
Showing with 8 additions and 2 deletions.
  1. +8 −2 nucalendar.js
@@ -16,7 +16,7 @@ function nuAppendChild(p,t,i){
}
function nuPopupCalendar(pThis){
function nuPopupCalendar(pThis, d){
if(pThis === null){return;}
@@ -27,7 +27,13 @@ function nuPopupCalendar(pThis){
var o = $('#' + window.nuCalendarCaller);
var f = o.attr('data-nu-format');
var v = o.val();
if(d === undefined){ //-- added by toms
var v = o.val();
}else{
var v = d;
}
var u = nuFORM.removeFormatting(v, f);
var i = pThis.id; //-- Object ID;

0 comments on commit 3cd1df6

Please sign in to comment.