";
sDTPickerComp += "
" + oDTP.settings.incrementButtonContent + "";
- sDTPickerComp += "
";
+ if(oDTP.settings.readonlyInputs)
+ sDTPickerComp += "
";
+ else
+ sDTPickerComp += "
";
sDTPickerComp += "
" + oDTP.settings.decrementButtonContent + "";
if(oDTP.settings.labels)
sDTPickerComp += "
" + oDTP.settings.labels[sFieldName] + "
";
@@ -7784,7 +7897,7 @@ $.cf = {
var sTempStr = sHeader + sDTPickerComp + sDTPickerButtons;
- $(oDTP.element).find('.dtpicker-subcontent').html(sTempStr);
+ $(oDTP.element).find(".dtpicker-subcontent").html(sTempStr);
oDTP._setCurrentDate();
oDTP._addEventHandlersForPicker();
@@ -7793,116 +7906,186 @@ $.cf = {
_addEventHandlersForPicker: function()
{
var oDTP = this;
+ var classType, keyCode, $nextElem;
- $(document).on("click.DateTimePicker", function(e)
+ if(!oDTP.settings.isInline)
{
- oDTP._hidePicker("");
- });
+ $(document).on("click.DateTimePicker", function(e)
+ {
+ oDTP._hidePicker("");
+ });
+ }
$(document).on("keydown.DateTimePicker", function(e)
{
- if(! $('.dtpicker-compValue').is(':focus') && parseInt(e.keyCode ? e.keyCode : e.which) === 9)
+ keyCode = parseInt(e.keyCode ? e.keyCode : e.which);
+ if(! $(".dtpicker-compValue").is(":focus") && keyCode === 9) // TAB
{
oDTP._setButtonAction(true);
$("[tabIndex=" + (oDTP.oData.iTabIndex + 1) + "]").focus();
return false;
}
- });
-
- $(document).on("keydown.DateTimePicker", function(e)
- {
- if(! $('.dtpicker-compValue').is(':focus') && parseInt(e.keyCode ? e.keyCode : e.which) !== 9)
+ else if($(".dtpicker-compValue").is(":focus"))
{
- oDTP._hidePicker("");
+ /*if(keyCode === 37) // Left Arrow
+ {
+ oDTP._setButtonAction(true);
+ $nextElem = $(".dtpicker-compValue:focus").parent().prev().children(".dtpicker-compValue");
+ $nextElem.focus();
+ console.log('Left Arrow ');
+ console.log($nextElem);
+ return false;
+ }
+ else if(keyCode === 39) // Right Arrow
+ {
+ oDTP._setButtonAction(true);
+ var compVal = $(".dtpicker-compValue:focus");
+ $nextElem = $(".dtpicker-compValue:focus").parent(".dtpicker-comp").next().children(".dtpicker-compValue");
+ $nextElem.focus();
+ console.log('Right Arrow ');
+ console.log($nextElem);
+ return false;
+ }
+ else*/
+ if(keyCode === 38) // Up Arrow
+ {
+ classType = $(".dtpicker-compValue:focus").parent().attr("class");
+ oDTP._incrementDecrementActionsUsingArrowAndMouse(classType, "inc");
+ return false;
+ }
+ else if(keyCode === 40) // Down Arrow
+ {
+ classType = $(".dtpicker-compValue:focus").parent().attr("class");
+ oDTP._incrementDecrementActionsUsingArrowAndMouse(classType, "dec");
+ return false;
+ }
}
});
+ if(!oDTP.settings.isInline)
+ {
+ $(document).on("keydown.DateTimePicker", function(e)
+ {
+ keyCode = parseInt(e.keyCode ? e.keyCode : e.which);
+ // console.log("keydown " + keyCode);
+ if(! $(".dtpicker-compValue").is(":focus") && keyCode !== 9)
+ {
+ //if(keyCode !== 37 && keyCode !== 39)
+ oDTP._hidePicker("");
+ }
+ });
+ }
+
$(".dtpicker-cont *").click(function(e)
{
e.stopPropagation();
});
- $('.dtpicker-compValue').not('.month .dtpicker-compValue, .meridiem .dtpicker-compValue').keyup(function()
- {
- this.value = this.value.replace(/[^0-9\.]/g,'');
- });
+ if(!oDTP.settings.readonlyInputs)
+ {
+ $(".dtpicker-compValue").not(".month .dtpicker-compValue, .meridiem .dtpicker-compValue").keyup(function()
+ {
+ this.value = this.value.replace(/[^0-9\.]/g,"");
+ });
- $('.dtpicker-compValue').focus(function()
- {
- oDTP.oData.bElemFocused = true;
- $(this).select();
- });
-
- $('.dtpicker-compValue').blur(function()
- {
- oDTP._getValuesFromInputBoxes();
- oDTP._setCurrentDate();
-
- oDTP.oData.bElemFocused = false;
- var $oParentElem = $(this).parent().parent();
- setTimeout(function()
+ $(".dtpicker-compValue").focus(function()
{
- if($oParentElem.is(':last-child') && !oDTP.oData.bElemFocused)
- {
- oDTP._setButtonAction(false);
- }
- }, 50);
- });
-
- $(".dtpicker-compValue").keyup(function(e)
- {
- var $oTextField = $(this),
-
- sTextBoxVal = $oTextField.val(),
- iLength = sTextBoxVal.length,
- sNewTextBoxVal;
-
- if($oTextField.parent().hasClass("day") || $oTextField.parent().hasClass("hour") || $oTextField.parent().hasClass("minutes") || $oTextField.parent().hasClass("meridiem"))
- {
- if(iLength > 2)
- {
- sNewTextBoxVal = sTextBoxVal.slice(0, 2);
- $oTextField.val(sNewTextBoxVal);
- }
- }
- else if($oTextField.parent().hasClass("month"))
- {
- if(iLength > 3)
- {
- sNewTextBoxVal = sTextBoxVal.slice(0, 3);
- $oTextField.val(sNewTextBoxVal);
- }
- }
- else if($oTextField.parent().hasClass("year"))
- {
- if(iLength > 4)
- {
- sNewTextBoxVal = sTextBoxVal.slice(0, 4);
- $oTextField.val(sNewTextBoxVal);
- }
- }
-
- if(parseInt(e.keyCode ? e.keyCode : e.which) === 9)
+ oDTP.oData.bElemFocused = true;
$(this).select();
+ });
+
+ $(".dtpicker-compValue").blur(function()
+ {
+ oDTP._getValuesFromInputBoxes();
+ oDTP._setCurrentDate();
+
+ oDTP.oData.bElemFocused = false;
+ var $oParentElem = $(this).parent().parent();
+ setTimeout(function()
+ {
+ if($oParentElem.is(":last-child") && !oDTP.oData.bElemFocused)
+ {
+ oDTP._setButtonAction(false);
+ }
+ }, 50);
+ });
+
+ $(".dtpicker-compValue").keyup(function(e)
+ {
+ var $oTextField = $(this),
+
+ sTextBoxVal = $oTextField.val(),
+ iLength = sTextBoxVal.length,
+ sNewTextBoxVal;
+
+ if($oTextField.parent().hasClass("day") || $oTextField.parent().hasClass("hour") || $oTextField.parent().hasClass("minutes") || $oTextField.parent().hasClass("meridiem"))
+ {
+ if(iLength > 2)
+ {
+ sNewTextBoxVal = sTextBoxVal.slice(0, 2);
+ $oTextField.val(sNewTextBoxVal);
+ }
+ }
+ else if($oTextField.parent().hasClass("month"))
+ {
+ if(iLength > 3)
+ {
+ sNewTextBoxVal = sTextBoxVal.slice(0, 3);
+ $oTextField.val(sNewTextBoxVal);
+ }
+ }
+ else if($oTextField.parent().hasClass("year"))
+ {
+ if(iLength > 4)
+ {
+ sNewTextBoxVal = sTextBoxVal.slice(0, 4);
+ $oTextField.val(sNewTextBoxVal);
+ }
+ }
+
+ if(parseInt(e.keyCode ? e.keyCode : e.which) === 9)
+ $(this).select();
+ });
+ }
+
+ $(oDTP.element).find(".dtpicker-compValue").on("mousewheel DOMMouseScroll onmousewheel", function(e)
+ {
+ if($(".dtpicker-compValue").is(":focus"))
+ {
+ var delta = Math.max(-1, Math.min(1, e.originalEvent.wheelDelta));
+
+ if(delta > 0)
+ {
+ classType = $(".dtpicker-compValue:focus").parent().attr("class");
+ oDTP._incrementDecrementActionsUsingArrowAndMouse(classType, "inc");
+ }
+ else
+ {
+ classType = $(".dtpicker-compValue:focus").parent().attr("class");
+ oDTP._incrementDecrementActionsUsingArrowAndMouse(classType, "dec");
+ }
+ return false;
+ }
});
//-----------------------------------------------------------------------
- $(oDTP.element).find('.dtpicker-close').click(function(e)
+ $(oDTP.element).find(".dtpicker-close").click(function(e)
{
if(oDTP.settings.buttonClicked)
oDTP.settings.buttonClicked.call(oDTP, "CLOSE", oDTP.oData.oInputElement);
- oDTP._hidePicker("");
+ if(!oDTP.settings.isInline)
+ oDTP._hidePicker("");
});
- $(oDTP.element).find('.dtpicker-buttonSet').click(function(e)
+ $(oDTP.element).find(".dtpicker-buttonSet").click(function(e)
{
if(oDTP.settings.buttonClicked)
oDTP.settings.buttonClicked.call(oDTP, "SET", oDTP.oData.oInputElement);
oDTP._setButtonAction(false);
});
- $(oDTP.element).find('.dtpicker-buttonClear').click(function(e)
+ $(oDTP.element).find(".dtpicker-buttonClear").click(function(e)
{
if(oDTP.settings.buttonClicked)
oDTP.settings.buttonClicked.call(oDTP, "CLEAR", oDTP.oData.oInputElement);
@@ -7911,89 +8094,113 @@ $.cf = {
// ----------------------------------------------------------------------------
- $(oDTP.element).find(".day .increment, .day .increment *").click(function(e)
+ //console.log((oDTP.settings.captureTouchHold || oDTP.settings.captureMouseHold));
+ if(oDTP.settings.captureTouchHold || oDTP.settings.captureMouseHold)
{
- oDTP.oData.iCurrentDay++;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
-
- $(oDTP.element).find(".day .decrement, .day .decrement *").click(function(e)
- {
- oDTP.oData.iCurrentDay--;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
-
- $(oDTP.element).find(".month .increment, .month .increment *").click(function(e)
- {
- oDTP.oData.iCurrentMonth++;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
-
- $(oDTP.element).find(".month .decrement, .month .decrement *").click(function(e)
- {
- oDTP.oData.iCurrentMonth--;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
-
- $(oDTP.element).find(".year .increment, .year .increment *").click(function(e)
- {
- oDTP.oData.iCurrentYear++;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
-
- $(oDTP.element).find(".year .decrement, .year .decrement *").click(function(e)
- {
- oDTP.oData.iCurrentYear--;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
-
- $(oDTP.element).find(".hour .increment, .hour .increment *").click(function(e)
- {
- oDTP.oData.iCurrentHour++;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
-
- $(oDTP.element).find(".hour .decrement, .hour .decrement *").click(function(e)
- {
- oDTP.oData.iCurrentHour--;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
-
- $(oDTP.element).find(".minutes .increment, .minutes .increment *").click(function(e)
- {
- oDTP.oData.iCurrentMinutes += oDTP.settings.minuteInterval;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
-
- $(oDTP.element).find(".minutes .decrement, .minutes .decrement *").click(function(e)
- {
- oDTP.oData.iCurrentMinutes -= oDTP.settings.minuteInterval;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
+ var sHoldEvents = "";
+ if(oDTP.settings.captureTouchHold && oDTP.oData.bIsTouchDevice)
+ sHoldEvents += "touchstart touchmove touchend ";
+ if(oDTP.settings.captureMouseHold)
+ sHoldEvents += "mousedown mouseup";
+
+ $(".dtpicker-cont *").on(sHoldEvents, function(e)
+ {
+ oDTP._clearIntervalForTouchEvents();
+ });
- $(oDTP.element).find(".seconds .increment, .seconds .increment *").click(function(e)
+ oDTP._bindTouchEvents("day");
+ oDTP._bindTouchEvents("month");
+ oDTP._bindTouchEvents("year");
+ oDTP._bindTouchEvents("hour");
+ oDTP._bindTouchEvents("minutes");
+ oDTP._bindTouchEvents("seconds");
+ }
+ else
{
- oDTP.oData.iCurrentSeconds += oDTP.settings.secondsInterval;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
-
- $(oDTP.element).find(".seconds .decrement, .seconds .decrement *").click(function(e)
- {
- oDTP.oData.iCurrentSeconds -= oDTP.settings.secondsInterval;
- oDTP._setCurrentDate();
- oDTP._setOutputOnIncrementOrDecrement();
- });
+ $(oDTP.element).find(".day .increment, .day .increment *").click(function(e)
+ {
+ oDTP.oData.iCurrentDay++;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+
+ $(oDTP.element).find(".day .decrement, .day .decrement *").click(function(e)
+ {
+ oDTP.oData.iCurrentDay--;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+
+ $(oDTP.element).find(".month .increment, .month .increment *").click(function(e)
+ {
+ oDTP.oData.iCurrentMonth++;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+
+ $(oDTP.element).find(".month .decrement, .month .decrement *").click(function(e)
+ {
+ oDTP.oData.iCurrentMonth--;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+
+ $(oDTP.element).find(".year .increment, .year .increment *").click(function(e)
+ {
+ oDTP.oData.iCurrentYear++;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+
+ $(oDTP.element).find(".year .decrement, .year .decrement *").click(function(e)
+ {
+ oDTP.oData.iCurrentYear--;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+
+ $(oDTP.element).find(".hour .increment, .hour .increment *").click(function(e)
+ {
+ oDTP.oData.iCurrentHour++;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+
+ $(oDTP.element).find(".hour .decrement, .hour .decrement *").click(function(e)
+ {
+ oDTP.oData.iCurrentHour--;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+
+ $(oDTP.element).find(".minutes .increment, .minutes .increment *").click(function(e)
+ {
+ oDTP.oData.iCurrentMinutes += oDTP.settings.minuteInterval;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+
+ $(oDTP.element).find(".minutes .decrement, .minutes .decrement *").click(function(e)
+ {
+ oDTP.oData.iCurrentMinutes -= oDTP.settings.minuteInterval;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+
+ $(oDTP.element).find(".seconds .increment, .seconds .increment *").click(function(e)
+ {
+ oDTP.oData.iCurrentSeconds += oDTP.settings.secondsInterval;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+
+ $(oDTP.element).find(".seconds .decrement, .seconds .decrement *").click(function(e)
+ {
+ oDTP.oData.iCurrentSeconds -= oDTP.settings.secondsInterval;
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ });
+ }
$(oDTP.element).find(".meridiem .dtpicker-compButton, .meridiem .dtpicker-compButton *").click(function(e)
{
@@ -8006,7 +8213,7 @@ $.cf = {
{
oDTP.oData.sCurrentMeridiem = "AM";
oDTP.oData.iCurrentHour -= 12;
- }
+ }
oDTP._setCurrentDate();
oDTP._setOutputOnIncrementOrDecrement();
});
@@ -8066,6 +8273,171 @@ $.cf = {
return sElemValue;
},
+
+ _bindTouchEvents: function(type)
+ {
+ var oDTP = this;
+
+ $(oDTP.element).find("." + type + " .increment, ." + type + " .increment *").on("touchstart mousedown", function(e)
+ {
+ e.stopPropagation();
+ if(!$.cf._isValid(oDTP.oData.sTouchButton))
+ {
+ oDTP.oData.iTouchStart = (new Date()).getTime();
+ oDTP.oData.sTouchButton = type + "-inc";
+
+ oDTP._setIntervalForTouchEvents();
+ }
+ });
+
+ $(oDTP.element).find("." + type + " .increment, ." + type + " .increment *").on("touchend mouseup", function(e)
+ {
+ e.stopPropagation();
+ oDTP._clearIntervalForTouchEvents();
+ });
+
+ $(oDTP.element).find("." + type + " .decrement, ." + type + " .decrement *").on("touchstart mousedown", function(e)
+ {
+ e.stopPropagation();
+ if(!$.cf._isValid(oDTP.oData.sTouchButton))
+ {
+ oDTP.oData.iTouchStart = (new Date()).getTime();
+ oDTP.oData.sTouchButton = type + "-dec";
+
+ oDTP._setIntervalForTouchEvents();
+ }
+ });
+
+ $(oDTP.element).find("." + type + " .decrement, ." + type + " .decrement *").on("touchend mouseup", function(e)
+ {
+ e.stopPropagation();
+ oDTP._clearIntervalForTouchEvents();
+ });
+ },
+
+ _setIntervalForTouchEvents: function()
+ {
+ var oDTP = this;
+
+ var iInterval = oDTP.oData.bIsTouchDevice ? oDTP.settings.touchHoldInterval : oDTP.settings.mouseHoldInterval;
+ if(!$.cf._isValid(oDTP.oData.oTimeInterval))
+ {
+ var iDiff;
+
+ oDTP.oData.oTimeInterval = setInterval(function()
+ {
+ iDiff = ((new Date()).getTime() - oDTP.oData.iTouchStart);
+ if(iDiff > iInterval && $.cf._isValid(oDTP.oData.sTouchButton))
+ {
+ if(oDTP.oData.sTouchButton === "day-inc")
+ {
+ oDTP.oData.iCurrentDay++;
+ }
+ else if(oDTP.oData.sTouchButton === "day-dec")
+ {
+ oDTP.oData.iCurrentDay--;
+ }
+ else if(oDTP.oData.sTouchButton === "month-inc")
+ {
+ oDTP.oData.iCurrentMonth++;
+ }
+ else if(oDTP.oData.sTouchButton === "month-dec")
+ {
+ oDTP.oData.iCurrentMonth--;
+ }
+ else if(oDTP.oData.sTouchButton === "year-inc")
+ {
+ oDTP.oData.iCurrentYear++;
+ }
+ else if(oDTP.oData.sTouchButton === "year-dec")
+ {
+ oDTP.oData.iCurrentYear--;
+ }
+ else if(oDTP.oData.sTouchButton === "hour-inc")
+ {
+ oDTP.oData.iCurrentHour++;
+ }
+ else if(oDTP.oData.sTouchButton === "hour-dec")
+ {
+ oDTP.oData.iCurrentHour--;
+ }
+ else if(oDTP.oData.sTouchButton === "minute-inc")
+ {
+ oDTP.oData.iCurrentMinutes += oDTP.settings.minuteInterval;
+ }
+ else if(oDTP.oData.sTouchButton === "minute-dec")
+ {
+ oDTP.oData.iCurrentMinutes -= oDTP.settings.minuteInterval;
+ }
+ else if(oDTP.oData.sTouchButton === "second-inc")
+ {
+ oDTP.oData.iCurrentSeconds += oDTP.settings.secondsInterval;
+ }
+ else if(oDTP.oData.sTouchButton === "second-dec")
+ {
+ oDTP.oData.iCurrentSeconds -= oDTP.settings.secondsInterval;
+ }
+
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+
+ oDTP.oData.iTouchStart = (new Date()).getTime();
+ }
+ }, iInterval);
+ }
+ },
+
+ _clearIntervalForTouchEvents: function()
+ {
+ var oDTP = this;
+
+ clearInterval(oDTP.oData.oTimeInterval);
+ if($.cf._isValid(oDTP.oData.sTouchButton))
+ {
+ oDTP.oData.sTouchButton = null;
+ oDTP.oData.iTouchStart = 0;
+ }
+ oDTP.oData.oTimeInterval = null;
+ },
+
+ _incrementDecrementActionsUsingArrowAndMouse: function(type, action)
+ {
+ var oDTP = this;
+
+ if(type.includes("day"))
+ {
+ if (action === "inc") oDTP.oData.iCurrentDay++;
+ else if (action === "dec") oDTP.oData.iCurrentDay--;
+ }
+ else if(type.includes("month"))
+ {
+ if (action === "inc") oDTP.oData.iCurrentMonth++;
+ else if (action === "dec") oDTP.oData.iCurrentMonth--;
+ }
+ else if(type.includes("year"))
+ {
+ if (action === "inc") oDTP.oData.iCurrentYear++;
+ else if (action === "dec") oDTP.oData.iCurrentYear--;
+ }
+ else if(type.includes("hour"))
+ {
+ if (action === "inc") oDTP.oData.iCurrentHour++;
+ else if (action === "dec") oDTP.oData.iCurrentHour--;
+ }
+ else if(type.includes("minutes"))
+ {
+ if (action === "inc") oDTP.oData.iCurrentMinutes += oDTP.settings.minuteInterval;
+ else if (action === "dec") oDTP.oData.iCurrentMinutes -= oDTP.settings.minuteInterval;
+ }
+ else if(type.includes("seconds"))
+ {
+ if (action === "inc") oDTP.oData.iCurrentSeconds += oDTP.settings.secondsInterval;
+ else if (action === "dec") oDTP.oData.iCurrentSeconds -= oDTP.settings.secondsInterval;
+ }
+
+ oDTP._setCurrentDate();
+ oDTP._setOutputOnIncrementOrDecrement();
+ },
//-----------------------------------------------------------------
@@ -8080,53 +8452,68 @@ $.cf = {
if($.cf._isValid(sDate))
{
- var sArrDate;
- if(oDTP.oData.bArrMatchFormat[4] || oDTP.oData.bArrMatchFormat[5] || oDTP.oData.bArrMatchFormat[6])
- sArrDate = sDate.split(oDTP.settings.monthYearSeparator);
+ if(typeof sDate === "string")
+ {
+ var sArrDate;
+ if(oDTP.oData.bArrMatchFormat[4] || oDTP.oData.bArrMatchFormat[5] || oDTP.oData.bArrMatchFormat[6])
+ sArrDate = sDate.split(oDTP.settings.monthYearSeparator);
+ else
+ sArrDate = sDate.split(oDTP.settings.dateSeparator);
+
+ if(oDTP.oData.bArrMatchFormat[0]) // "dd-MM-yyyy"
+ {
+ iDate = parseInt(sArrDate[0]);
+ iMonth = parseInt(sArrDate[1] - 1);
+ iYear = parseInt(sArrDate[2]);
+ }
+ else if(oDTP.oData.bArrMatchFormat[1]) // "MM-dd-yyyy"
+ {
+ iMonth = parseInt(sArrDate[0] - 1);
+ iDate = parseInt(sArrDate[1]);
+ iYear = parseInt(sArrDate[2]);
+ }
+ else if(oDTP.oData.bArrMatchFormat[2]) // "yyyy-MM-dd"
+ {
+ iYear = parseInt(sArrDate[0]);
+ iMonth = parseInt(sArrDate[1] - 1);
+ iDate = parseInt(sArrDate[2]);
+ }
+ else if(oDTP.oData.bArrMatchFormat[3]) // "dd-MMM-yyyy"
+ {
+ iDate = parseInt(sArrDate[0]);
+ iMonth = oDTP._getShortMonthIndex(sArrDate[1]);
+ iYear = parseInt(sArrDate[2]);
+ }
+ else if(oDTP.oData.bArrMatchFormat[4]) // "MM-yyyy"
+ {
+ iDate = 1;
+ iMonth = parseInt(sArrDate[0]) - 1;
+ iYear = parseInt(sArrDate[1]);
+ }
+ else if(oDTP.oData.bArrMatchFormat[5]) // "MMM yyyy"
+ {
+ iDate = 1;
+ iMonth = oDTP._getShortMonthIndex(sArrDate[0]);
+ iYear = parseInt(sArrDate[1]);
+ }
+ else if(oDTP.oData.bArrMatchFormat[6]) // "MMMM yyyy"
+ {
+ iDate = 1;
+ iMonth = oDTP._getFullMonthIndex(sArrDate[0]);
+ iYear = parseInt(sArrDate[1]);
+ }
+ else if(oDTP.oData.bArrMatchFormat[7]) // "yyyy MM"
+ {
+ iDate = 1;
+ iMonth = parseInt(sArrDate[1]) - 1;
+ iYear = parseInt(sArrDate[0]);
+ }
+ }
else
- sArrDate = sDate.split(oDTP.settings.dateSeparator);
-
- if(oDTP.oData.bArrMatchFormat[0]) // "dd-MM-yyyy"
{
- iDate = parseInt(sArrDate[0]);
- iMonth = parseInt(sArrDate[1] - 1);
- iYear = parseInt(sArrDate[2]);
- }
- else if(oDTP.oData.bArrMatchFormat[1]) // "MM-dd-yyyy"
- {
- iMonth = parseInt(sArrDate[0] - 1);
- iDate = parseInt(sArrDate[1]);
- iYear = parseInt(sArrDate[2]);
- }
- else if(oDTP.oData.bArrMatchFormat[2]) // "yyyy-MM-dd"
- {
- iYear = parseInt(sArrDate[0]);
- iMonth = parseInt(sArrDate[1] - 1);
- iDate = parseInt(sArrDate[2]);
- }
- else if(oDTP.oData.bArrMatchFormat[3]) // "dd-MMM-yyyy"
- {
- iDate = parseInt(sArrDate[0]);
- iMonth = oDTP._getShortMonthIndex(sArrDate[1]);
- iYear = parseInt(sArrDate[2]);
- }
- else if(oDTP.oData.bArrMatchFormat[4]) // "MM-yyyy"
- {
- iDate = 1;
- iMonth = parseInt(sArrDate[0]) - 1;
- iYear = parseInt(sArrDate[1]);
- }
- else if(oDTP.oData.bArrMatchFormat[5]) // "MMM yyyy"
- {
- iDate = 1;
- iMonth = oDTP._getShortMonthIndex(sArrDate[0]);
- iYear = parseInt(sArrDate[1]);
- }
- else if(oDTP.oData.bArrMatchFormat[6]) // "MMMM yyyy"
- {
- iDate = 1;
- iMonth = oDTP._getFullMonthIndex(sArrDate[0]);
- iYear = parseInt(sArrDate[1]);
+ iDate = sDate.getDate();
+ iMonth = sDate.getMonth();
+ iYear = sDate.getFullYear();
}
}
@@ -8153,30 +8540,44 @@ $.cf = {
if($.cf._isValid(sTime))
{
- if(oDTP.oData.bIs12Hour)
+ if(typeof sTime === "string")
{
- sArrTime = sTime.split(oDTP.settings.timeMeridiemSeparator);
- sTime = sArrTime[0];
- sMeridiem = sArrTime[1];
+ if(oDTP.oData.bIs12Hour)
+ {
+ sArrTime = sTime.split(oDTP.settings.timeMeridiemSeparator);
+ sTime = sArrTime[0];
+ sMeridiem = sArrTime[1];
- if(!($.cf._compare(sMeridiem, "AM") || $.cf._compare(sMeridiem, "PM")))
- sMeridiem = "";
+ if(!($.cf._compare(sMeridiem, "AM") || $.cf._compare(sMeridiem, "PM")))
+ sMeridiem = "";
+ }
+
+ sArrTimeComp = sTime.split(oDTP.settings.timeSeparator);
+ iHour = parseInt(sArrTimeComp[0]);
+ iMinutes = parseInt(sArrTimeComp[1]);
+
+ if(bShowSeconds)
+ {
+ iSeconds = parseInt(sArrTimeComp[2]);
+ iSeconds = oDTP._adjustSeconds(iSeconds);
+ }
+
+ if(iHour === 12 && $.cf._compare(sMeridiem, "AM"))
+ iHour = 0;
+ else if(iHour < 12 && $.cf._compare(sMeridiem, "PM"))
+ iHour += 12;
}
-
- sArrTimeComp = sTime.split(oDTP.settings.timeSeparator);
- iHour = parseInt(sArrTimeComp[0]);
- iMinutes = parseInt(sArrTimeComp[1]);
-
- if(bShowSeconds)
+ else
{
- iSeconds = parseInt(sArrTimeComp[2]);
- iSeconds = oDTP._adjustSeconds(iSeconds);
- }
+ iHour = sTime.getHours();
+ iMinutes = sTime.getMinutes();
- if(iHour === 12 && $.cf._compare(sMeridiem, "AM"))
- iHour = 0;
- else if(iHour < 12 && $.cf._compare(sMeridiem, "PM"))
- iHour += 12;
+ if(bShowSeconds)
+ {
+ iSeconds = sTime.getSeconds();
+ iSeconds = oDTP._adjustSeconds(iSeconds);
+ }
+ }
}
iMinutes = oDTP._adjustMinutes(iMinutes);
@@ -8211,77 +8612,95 @@ $.cf = {
if($.cf._isValid(sDateTime))
{
- sArrDateTime = sDateTime.split(oDTP.settings.dateTimeSeparator);
- sArrDate = sArrDateTime[0].split(oDTP.settings.dateSeparator);
-
- if(oDTP.oData.bArrMatchFormat[0] || // "dd-MM-yyyy HH:mm:ss"
- oDTP.oData.bArrMatchFormat[1] || // ""dd-MM-yyyy hh:mm:ss AA"
- oDTP.oData.bArrMatchFormat[8] || // "dd-MM-yyyy HH:mm"
- oDTP.oData.bArrMatchFormat[9]) // "dd-MM-yyyy hh:mm AA"
+ if(typeof sDateTime === "string")
{
- iDate = parseInt(sArrDate[0]);
- iMonth = parseInt(sArrDate[1] - 1);
- iYear = parseInt(sArrDate[2]);
- }
- else if(oDTP.oData.bArrMatchFormat[2] || // "MM-dd-yyyy HH:mm:ss"
- oDTP.oData.bArrMatchFormat[3] || // "MM-dd-yyyy hh:mm:ss AA"
- oDTP.oData.bArrMatchFormat[10] || // "MM-dd-yyyy HH:mm"
- oDTP.oData.bArrMatchFormat[11]) // "MM-dd-yyyy hh:mm AA"
- {
- iMonth = parseInt(sArrDate[0] - 1);
- iDate = parseInt(sArrDate[1]);
- iYear = parseInt(sArrDate[2]);
- }
- else if(oDTP.oData.bArrMatchFormat[4] || // "yyyy-MM-dd HH:mm:ss"
- oDTP.oData.bArrMatchFormat[5] || // "yyyy-MM-dd hh:mm:ss AA"
- oDTP.oData.bArrMatchFormat[12] || // "yyyy-MM-dd HH:mm"
- oDTP.oData.bArrMatchFormat[13]) // "yyyy-MM-dd hh:mm AA"
- {
- iYear = parseInt(sArrDate[0]);
- iMonth = parseInt(sArrDate[1] - 1);
- iDate = parseInt(sArrDate[2]);
- }
- else if(oDTP.oData.bArrMatchFormat[6] || // "dd-MMM-yyyy HH:mm:ss"
- oDTP.oData.bArrMatchFormat[7] || // "dd-MMM-yyyy hh:mm:ss AA"
- oDTP.oData.bArrMatchFormat[14] || // "dd-MMM-yyyy HH:mm:ss"
- oDTP.oData.bArrMatchFormat[15]) // "dd-MMM-yyyy hh:mm:ss AA"
- {
- iDate = parseInt(sArrDate[0]);
- iMonth = oDTP._getShortMonthIndex(sArrDate[1]);
- iYear = parseInt(sArrDate[2]);
- }
-
- sTime = sArrDateTime[1];
- if($.cf._isValid(sTime))
- {
- if(oDTP.oData.bIs12Hour)
+ sArrDateTime = sDateTime.split(oDTP.settings.dateTimeSeparator);
+ sArrDate = sArrDateTime[0].split(oDTP.settings.dateSeparator);
+
+ if(oDTP.oData.bArrMatchFormat[0] || // "dd-MM-yyyy HH:mm:ss"
+ oDTP.oData.bArrMatchFormat[1] || // ""dd-MM-yyyy hh:mm:ss AA"
+ oDTP.oData.bArrMatchFormat[8] || // "dd-MM-yyyy HH:mm"
+ oDTP.oData.bArrMatchFormat[9]) // "dd-MM-yyyy hh:mm AA"
{
- if($.cf._compare(oDTP.settings.dateTimeSeparator, oDTP.settings.timeMeridiemSeparator) && (sArrDateTime.length === 3))
- sMeridiem = sArrDateTime[2];
- else
- {
- sArrTimeComp = sTime.split(oDTP.settings.timeMeridiemSeparator);
- sTime = sArrTimeComp[0];
- sMeridiem = sArrTimeComp[1];
- }
-
- if(!($.cf._compare(sMeridiem, "AM") || $.cf._compare(sMeridiem, "PM")))
- sMeridiem = "";
+ iDate = parseInt(sArrDate[0]);
+ iMonth = parseInt(sArrDate[1] - 1);
+ iYear = parseInt(sArrDate[2]);
}
-
- sArrTime = sTime.split(oDTP.settings.timeSeparator);
+ else if(oDTP.oData.bArrMatchFormat[2] || // "MM-dd-yyyy HH:mm:ss"
+ oDTP.oData.bArrMatchFormat[3] || // "MM-dd-yyyy hh:mm:ss AA"
+ oDTP.oData.bArrMatchFormat[10] || // "MM-dd-yyyy HH:mm"
+ oDTP.oData.bArrMatchFormat[11]) // "MM-dd-yyyy hh:mm AA"
+ {
+ iMonth = parseInt(sArrDate[0] - 1);
+ iDate = parseInt(sArrDate[1]);
+ iYear = parseInt(sArrDate[2]);
+ }
+ else if(oDTP.oData.bArrMatchFormat[4] || // "yyyy-MM-dd HH:mm:ss"
+ oDTP.oData.bArrMatchFormat[5] || // "yyyy-MM-dd hh:mm:ss AA"
+ oDTP.oData.bArrMatchFormat[12] || // "yyyy-MM-dd HH:mm"
+ oDTP.oData.bArrMatchFormat[13]) // "yyyy-MM-dd hh:mm AA"
+ {
+ iYear = parseInt(sArrDate[0]);
+ iMonth = parseInt(sArrDate[1] - 1);
+ iDate = parseInt(sArrDate[2]);
+ }
+ else if(oDTP.oData.bArrMatchFormat[6] || // "dd-MMM-yyyy HH:mm:ss"
+ oDTP.oData.bArrMatchFormat[7] || // "dd-MMM-yyyy hh:mm:ss AA"
+ oDTP.oData.bArrMatchFormat[14] || // "dd-MMM-yyyy HH:mm:ss"
+ oDTP.oData.bArrMatchFormat[15]) // "dd-MMM-yyyy hh:mm:ss AA"
+ {
+ iDate = parseInt(sArrDate[0]);
+ iMonth = oDTP._getShortMonthIndex(sArrDate[1]);
+ iYear = parseInt(sArrDate[2]);
+ }
+
+ sTime = sArrDateTime[1];
+ if($.cf._isValid(sTime))
+ {
+ if(oDTP.oData.bIs12Hour)
+ {
+ if($.cf._compare(oDTP.settings.dateTimeSeparator, oDTP.settings.timeMeridiemSeparator) && (sArrDateTime.length === 3))
+ sMeridiem = sArrDateTime[2];
+ else
+ {
+ sArrTimeComp = sTime.split(oDTP.settings.timeMeridiemSeparator);
+ sTime = sArrTimeComp[0];
+ sMeridiem = sArrTimeComp[1];
+ }
+
+ if(!($.cf._compare(sMeridiem, "AM") || $.cf._compare(sMeridiem, "PM")))
+ sMeridiem = "";
+ }
+
+ sArrTime = sTime.split(oDTP.settings.timeSeparator);
+
+ iHour = parseInt(sArrTime[0]);
+ iMinutes = parseInt(sArrTime[1]);
+ if(bShowSeconds)
+ {
+ iSeconds = parseInt(sArrTime[2]);
+ }
+
+ if(iHour === 12 && $.cf._compare(sMeridiem, "AM"))
+ iHour = 0;
+ else if(iHour < 12 && $.cf._compare(sMeridiem, "PM"))
+ iHour += 12;
+ }
+ }
+ else
+ {
+ iDate = sDateTime.getDate();
+ iMonth = sDateTime.getMonth();
+ iYear = sDateTime.getFullYear();
+
+ iHour = sDateTime.getHours();
+ iMinutes = sDateTime.getMinutes();
- iHour = parseInt(sArrTime[0]);
- iMinutes = parseInt(sArrTime[1]);
if(bShowSeconds)
{
- iSeconds = parseInt(sArrTime[2]);
+ iSeconds = sDateTime.getSeconds();
+ iSeconds = oDTP._adjustSeconds(iSeconds);
}
-
- if(iHour === 12 && $.cf._compare(sMeridiem, "AM"))
- iHour = 0;
- else if(iHour < 12 && $.cf._compare(sMeridiem, "PM"))
- iHour += 12;
}
}
iMinutes = oDTP._adjustMinutes(iMinutes);
@@ -8362,7 +8781,7 @@ $.cf = {
}
else
{
- if (Object.prototype.toString.call(oDTP.oData.dCurrentDate) === '[object Date]' && isFinite(oDTP.oData.dCurrentDate))
+ if (Object.prototype.toString.call(oDTP.oData.dCurrentDate) === "[object Date]" && isFinite(oDTP.oData.dCurrentDate))
dTemp = new Date(oDTP.oData.dCurrentDate);
else
dTemp = new Date();
@@ -8543,21 +8962,21 @@ $.cf = {
oFormattedDate = oDTP._formatDate();
- $(oDTP.element).find('.day .dtpicker-compValue').val(oFormattedDate.dd);
+ $(oDTP.element).find(".day .dtpicker-compValue").val(oFormattedDate.dd);
if(oDTP.oData.bDateMode)
{
- if(oDTP.oData.bArrMatchFormat[4]) // "MM-yyyy"
- $(oDTP.element).find('.month .dtpicker-compValue').val(oFormattedDate.MM);
+ if(oDTP.oData.bArrMatchFormat[4] || oDTP.oData.bArrMatchFormat[7]) // "MM-yyyy"
+ $(oDTP.element).find(".month .dtpicker-compValue").val(oFormattedDate.MM);
else if(oDTP.oData.bArrMatchFormat[6]) // "MMMM yyyy"
- $(oDTP.element).find('.month .dtpicker-compValue').val(oFormattedDate.month);
+ $(oDTP.element).find(".month .dtpicker-compValue").val(oFormattedDate.month);
else
- $(oDTP.element).find('.month .dtpicker-compValue').val(oFormattedDate.monthShort);
+ $(oDTP.element).find(".month .dtpicker-compValue").val(oFormattedDate.monthShort);
}
else
- $(oDTP.element).find('.month .dtpicker-compValue').val(oFormattedDate.monthShort);
+ $(oDTP.element).find(".month .dtpicker-compValue").val(oFormattedDate.monthShort);
- $(oDTP.element).find('.year .dtpicker-compValue').val(oFormattedDate.yyyy);
+ $(oDTP.element).find(".year .dtpicker-compValue").val(oFormattedDate.yyyy);
if(oDTP.settings.formatHumanDate)
{
@@ -8565,7 +8984,7 @@ $.cf = {
}
else
{
- if(oDTP.oData.bDateMode && (oDTP.oData.bArrMatchFormat[4] || oDTP.oData.bArrMatchFormat[5] || oDTP.oData.bArrMatchFormat[6]))
+ if(oDTP.oData.bDateMode && (oDTP.oData.bArrMatchFormat[4] || oDTP.oData.bArrMatchFormat[5] || oDTP.oData.bArrMatchFormat[6] || oDTP.oData.bArrMatchFormat[7]))
{
if(oDTP.oData.bArrMatchFormat[4])
sDate = oFormattedDate.MM + oDTP.settings.monthYearSeparator + oFormattedDate.yyyy;
@@ -8573,6 +8992,8 @@ $.cf = {
sDate = oFormattedDate.monthShort + oDTP.settings.monthYearSeparator + oFormattedDate.yyyy;
else if(oDTP.oData.bArrMatchFormat[6])
sDate = oFormattedDate.month + oDTP.settings.monthYearSeparator + oFormattedDate.yyyy;
+ else if(oDTP.oData.bArrMatchFormat[7])
+ sDate = oFormattedDate.yyyy + oDTP.settings.monthYearSeparator + oFormattedDate.MM;
}
else
sDate = oFormattedDate.dayShort + ", " + oFormattedDate.month + " " + oFormattedDate.dd + ", " + oFormattedDate.yyyy;
@@ -8583,10 +9004,10 @@ $.cf = {
oFormattedTime = oDTP._formatTime();
if(oDTP.oData.bIs12Hour)
- $(oDTP.element).find('.meridiem .dtpicker-compValue').val(oDTP.oData.sCurrentMeridiem);
- $(oDTP.element).find('.hour .dtpicker-compValue').val(oFormattedTime.hour);
- $(oDTP.element).find('.minutes .dtpicker-compValue').val(oFormattedTime.mm);
- $(oDTP.element).find('.seconds .dtpicker-compValue').val(oFormattedTime.ss);
+ $(oDTP.element).find(".meridiem .dtpicker-compValue").val(oDTP.oData.sCurrentMeridiem);
+ $(oDTP.element).find(".hour .dtpicker-compValue").val(oFormattedTime.hour);
+ $(oDTP.element).find(".minutes .dtpicker-compValue").val(oFormattedTime.mm);
+ $(oDTP.element).find(".seconds .dtpicker-compValue").val(oFormattedTime.ss);
if(oDTP.settings.formatHumanDate)
{
@@ -8639,7 +9060,7 @@ $.cf = {
sDateTime = sTime;
}
- $(oDTP.element).find('.dtpicker-value').html(sDateTime);
+ $(oDTP.element).find(".dtpicker-value").html(sDateTime);
oDTP._setButtons();
},
@@ -8737,7 +9158,7 @@ $.cf = {
_setButtons: function()
{
var oDTP = this;
- $(oDTP.element).find('.dtpicker-compButton').removeClass("dtpicker-compButtonDisable").addClass('dtpicker-compButtonEnable');
+ $(oDTP.element).find(".dtpicker-compButton").removeClass("dtpicker-compButtonDisable").addClass("dtpicker-compButtonEnable");
var dTempDate;
if(oDTP.oData.dMaxValue !== null)
@@ -8882,35 +9303,38 @@ $.cf = {
setIsPopup: function(bIsPopup)
{
var oDTP = this;
- oDTP.settings.isPopup = bIsPopup;
- if($(oDTP.element).css("display") !== "none")
- oDTP._hidePicker(0);
-
- if(oDTP.settings.isPopup)
+ if(!oDTP.settings.isInline)
{
- $(oDTP.element).addClass("dtpicker-mobile");
-
- $(oDTP.element).css({position: "fixed", top: 0, left: 0, width: "100%", height: "100%"});
- }
- else
- {
- $(oDTP.element).removeClass("dtpicker-mobile");
-
- if(oDTP.oData.oInputElement !== null)
+ oDTP.settings.isPopup = bIsPopup;
+
+ if($(oDTP.element).css("display") !== "none")
+ oDTP._hidePicker(0);
+
+ if(oDTP.settings.isPopup)
{
- var iElemTop = $(oDTP.oData.oInputElement).offset().top + $(oDTP.oData.oInputElement).outerHeight(),
- iElemLeft = $(oDTP.oData.oInputElement).offset().left,
- iElemWidth = $(oDTP.oData.oInputElement).outerWidth();
-
- $(oDTP.element).css({position: "absolute", top: iElemTop, left: iElemLeft, width: iElemWidth, height: "auto"});
+ $(oDTP.element).addClass("dtpicker-mobile");
+
+ $(oDTP.element).css({position: "fixed", top: 0, left: 0, width: "100%", height: "100%"});
+ }
+ else
+ {
+ $(oDTP.element).removeClass("dtpicker-mobile");
+
+ if(oDTP.oData.oInputElement !== null)
+ {
+ var iElemTop = $(oDTP.oData.oInputElement).offset().top + $(oDTP.oData.oInputElement).outerHeight(),
+ iElemLeft = $(oDTP.oData.oInputElement).offset().left,
+ iElemWidth = $(oDTP.oData.oInputElement).outerWidth();
+
+ $(oDTP.element).css({position: "absolute", top: iElemTop, left: iElemLeft, width: iElemWidth, height: "auto"});
+ }
}
}
},
_compareDates: function(dDate1, dDate2)
{
- dDate1 = new Date(dDate1.getDate(), dDate1.getMonth(), dDate1.getFullYear(), 0, 0, 0, 0);
dDate1 = new Date(dDate1.getDate(), dDate1.getMonth(), dDate1.getFullYear(), 0, 0, 0, 0);
var iDateDiff = (dDate1.getTime() - dDate2.getTime()) / 864E5;
return (iDateDiff === 0) ? iDateDiff: (iDateDiff/Math.abs(iDateDiff));
@@ -8946,14 +9370,10 @@ $.cf = {
_determineMeridiemFromHourAndMinutes: function(iHour, iMinutes)
{
- if(iHour > 12)
+ if(iHour > 12 || (iHour === 12 && iMinutes >= 0))
{
return "PM";
- }
- else if(iHour === 12 && iMinutes >= 0)
- {
- return "PM";
- }
+ }
else
{
return "AM";
@@ -8966,11 +9386,12 @@ $.cf = {
var oDTP = this;
oDTP.settings = $.extend({}, $.DateTimePicker.defaults, $.DateTimePicker.i18n[sLanguage], oDTP.options);
-
+ oDTP.settings.language = sLanguage;
+
oDTP._setDateFormatArray(); // Set DateFormatArray
oDTP._setTimeFormatArray(); // Set TimeFormatArray
oDTP._setDateTimeFormatArray(); // Set DateTimeFormatArray
-
+
return oDTP;
}
@@ -8992,7 +9413,8 @@ $.cf = {
var $div = $("
", {id: "DatePicker"});
$("body").append($div);
$div.DateTimePicker({
- dateTimeFormat: Attendize.DateTimeFormat
+ dateTimeFormat: Attendize.DateTimeFormat,
+ dateSeparator: Attendize.DateSeparator
});
});
@@ -9485,7 +9907,7 @@ function toggleSubmitDisabled($submitButton) {
}
/**
- *
+ *
* @returns {{}}
*/
$.fn.serializeObject = function()
diff --git a/public/assets/javascript/frontend.js b/public/assets/javascript/frontend.js
index 3b24fdb2..ff1a363d 100644
--- a/public/assets/javascript/frontend.js
+++ b/public/assets/javascript/frontend.js
@@ -3923,7 +3923,7 @@ function log() {
$.payment.cards = cards = [
{
type: 'elo',
- patterns: [4011, 4312, 4389, 4514, 4573, 4576, 5041, 5066, 5067, 509, 6277, 6362, 6363, 650, 6516, 6550],
+ patterns: [401178, 401179, 431274, 438935, 451416, 457393, 457631, 457632, 504175, 506699, 5067, 509, 627780, 636297, 636368, 650, 6516, 6550],
format: defaultFormat,
length: [16],
cvcLength: [3],
diff --git a/public/assets/stylesheet/application.css b/public/assets/stylesheet/application.css
index d5b785d5..fbeaa0de 100644
--- a/public/assets/stylesheet/application.css
+++ b/public/assets/stylesheet/application.css
@@ -95,10 +95,11 @@ body {
/* -----------------------------------------------------------------------------
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
- Version 0.1.26
- Copyright (c)2016 Curious Solutions LLP and Neha Kadam
- http://curioussolutions.github.io/DateTimePicker
- https://github.com/CuriousSolutions/DateTimePicker
+ Version 0.1.38
+ Copyright (c)2017 Lajpat Shah
+ Contributors : https://github.com/nehakadam/DateTimePicker/contributors
+ Repository : https://github.com/nehakadam/DateTimePicker
+ Documentation : https://nehakadam.github.io/DateTimePicker
----------------------------------------------------------------------------- */
diff --git a/public/assets/stylesheet/application.less b/public/assets/stylesheet/application.less
index f4929457..aef5eaf1 100644
--- a/public/assets/stylesheet/application.less
+++ b/public/assets/stylesheet/application.less
@@ -32,7 +32,7 @@
/* Plugins etc */
@import (inline) "../../vendor/RRSSB/css/rrssb.css";
@import (inline) "../../vendor/humane-js/themes/flatty.css";
-@import (inline) "../../vendor/curioussolutions-datetimepicker/dist/DateTimePicker.min.css";
+@import (inline) "../../vendor/datetimepicker/dist/DateTimePicker.min.css";
@import (inline) "../../vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.css";
@import (inline) "../../vendor/jquery-minicolors/jquery.minicolors.css";
diff --git a/public/assets/stylesheet/frontend.css b/public/assets/stylesheet/frontend.css
index c25ac536..404bee82 100644
--- a/public/assets/stylesheet/frontend.css
+++ b/public/assets/stylesheet/frontend.css
@@ -92,4 +92,4 @@ body {
opacity: 0.7;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
}
-html,body{height:100%}body{font-family:'Open Sans',sans-serif}table{margin:0}label.required::after{content:'*';color:red;padding-left:3px;font-size:9px}@media (min-width:1200px){.container{width:960px}}section.container{padding:40px;background-color:#ffffff;margin-bottom:25px}.section_head{border:none !important;font-size:35px;text-align:center;margin:0;margin-bottom:30px;letter-spacing:.2em;font-weight:200}.section_head h1{margin:0;font-weight:100;text-align:center}section{color:#666}#organiser_page_wrap #intro{position:relative;text-align:center;font-weight:100;padding:20px 0 20px 0;border:none;margin-bottom:0;margin-top:20px;color:#fff;background-color:#AF5050}#organiser_page_wrap .organiser_logo{max-width:150px;margin:0 auto}#organiser_page_wrap .organiser_logo .thumbnail{background-color:transparent;border:none}#goLiveBar{background-color:rgba(255,255,255,0.9);text-align:center;padding:10px}.adminLink,.adminLink:hover{color:#fff}#event_page_wrap{min-height:100%;margin:0 auto -60px;background:rgba(0,0,0,0.4)}#event_page_wrap #organiserHead{text-align:center;color:#fff;border:none;font-size:15px;opacity:.6;transition:all .15s ease-in-out;background:rgba(0,0,0,0.4);line-height:30px;cursor:pointer}#event_page_wrap #organiserHead:hover{opacity:1}#event_page_wrap #intro{position:relative;text-align:center;font-weight:100;padding:20px 0 20px 0;color:#ffffff;border:none;background-color:transparent;margin-bottom:0}#event_page_wrap #intro h1{position:relative;padding:10px 10px;margin:0;font-weight:400;font-size:60px;margin-bottom:10px}#event_page_wrap #intro .event_date{font-size:15px;padding:10px;font-weight:500}#event_page_wrap #intro .event_venue{font-size:19px}#event_page_wrap #intro .event_buttons{margin-top:30px;margin-bottom:30px}#event_page_wrap #intro .event_buttons .btn-event-link{line-height:35px;font-size:17px;text-transform:uppercase;letter-spacing:5px;border:1px solid;border-color:rgba(255,255,255,0.2);text-decoration:none;color:#fff;padding:0 15px;transition:all .15s ease-in-out;width:100%;background:rgba(0,0,0,0.3)}#event_page_wrap #intro .event_buttons .btn-event-link:hover{border-color:rgba(255,255,255,0.6)}#event_page_wrap #tickets .input-group-addon{background:none;border:none}#event_page_wrap #tickets table tr:first-child td{border-top:none}#event_page_wrap #tickets table tr td{padding:20px 0px}#event_page_wrap #details .event_poster img{border:4px solid #f6f6f6;max-width:100%;min-width:100%}#event_page_wrap #details .event_details iframe,#event_page_wrap #details .event_details img{max-width:100%}#event_page_wrap #details .event_details h1,#event_page_wrap #details .event_details h2,#event_page_wrap #details .event_details h3,#event_page_wrap #details .event_details h4,#event_page_wrap #details .event_details h5,#event_page_wrap #details .event_details h6{margin-top:0px;margin-bottom:15px;font-weight:100}#event_page_wrap #details .event_details h1{font-size:28px}#event_page_wrap #details .event_details h2{font-size:24px}#event_page_wrap #details .event_details h3{font-size:20px}#event_page_wrap #details .event_details h4{font-size:17px}#event_page_wrap #share .btn{margin-bottom:20px}#event_page_wrap #location{padding:0px}#event_page_wrap #location .google-maps{position:relative;overflow:hidden}#event_page_wrap #location .google-maps iframe{width:100% !important;height:100% !important;min-height:500px}footer,.push{height:60px}#footer{background-color:#888;background-color:rgba(0,0,0,0.4);min-height:60px;line-height:60px;color:#fff;text-align:center}#organiser{text-align:center}#organiser .contact_form{display:none;padding:20px;margin-top:25px;text-align:left}.totop{border-radius:0;background-color:#888;background-color:rgba(0,0,0,0.4)}.totop:hover{background-color:#fff;background-color:rgba(255,255,255,0.4);color:#000}.powered_by_embedded{text-align:center;padding:4px}.powered_by_embedded a{color:#333 !important}@media (min-width:100px) and (max-width:767px){.row{margin:0}section.container{margin-bottom:0;padding:10px}.section_head{padding:10px;font-size:30px}.main_content{padding:0px;background:#fff}#organiser_page_wrap #intro{padding:30px;margin-top:0}#organiser_page_wrap #intro h1{font-size:2.236em;padding:15px}#organiser_page_wrap #events{min-height:350px}#event_page_wrap #intro{padding:30px}#event_page_wrap #intro .event_date h2{font-size:20px}#event_page_wrap #intro .event_date h4{font-size:11px}#event_page_wrap #intro h1{font-size:2.236em;padding:15px}#event_page_wrap #intro .event_venue{color:#fff;font-size:20px;margin-top:10px}#event_page_wrap #intro .event_buttons{margin-top:50px}#event_page_wrap #intro .event_buttons .btn-event-link{padding:5px 0px;font-size:18px;margin-bottom:5px;line-height:30px}#event_page_wrap #tickets .btn-checkout{width:100%}#event_page_wrap #location .google-maps iframe{min-height:290px}.content{padding:15px}}.rrssb-buttons.large-format li a{border-radius:0}.event-listing-heading{margin-top:0;margin-bottom:10px;font-size:20px}.event-list{list-style:none;margin:0px;padding:0px}.event-list>li{background-color:#F3F3F3;padding:0px;margin:0px 0px 20px}.event-list>li>time{display:inline-block;width:100%;padding:5px;text-align:center;text-transform:uppercase}.event-list>li>time>span{display:none}.event-list>li>time>.day{display:block;font-size:18pt;font-weight:100;line-height:1}.event-list>li time>.month{display:block;font-size:24pt;font-weight:900;line-height:1}.event-list>li>img{width:100%}.event-list>li>.info{padding-top:10px;text-align:center}.event-list>li>.info>.title{font-size:15pt;font-weight:500;margin:0px}.event-list>li>.info>.desc{font-size:10pt;font-weight:300;margin:0px}.event-list>li>.info>ul{display:table;list-style:none;margin:10px 0px 0px;padding:0px;width:100%;text-align:center;background-color:#DEDEDE}.event-list>li>.info>ul>li{display:table-cell;cursor:pointer;color:#1e1e1e;font-size:11pt;font-weight:300;padding:3px 0px}.event-list>li>.info>ul>li>a{display:block;width:100%;color:#6D6D6D;text-decoration:none}.event-list>li>.info>ul>li:hover{color:#1e1e1e;background-color:#c8c8c8}@media (min-width:768px){.event-list>li{position:relative;display:block;width:100%;height:120px;padding:0px}.event-list>li>time,.event-list>li>img{display:inline-block}.event-list>li>time,.event-list>li>img{width:120px;float:left}.event-list>li>.info{background-color:#f5f5f5;overflow:hidden}.event-list>li>time,.event-list>li>img{width:120px;height:120px;padding:0px;margin:0px}.event-list>li>time>.day{font-size:56pt}.event-list>li>.info{position:relative;height:120px;text-align:left;padding-right:40px;padding-top:30px}.event-list>li>.info>.title,.event-list>li>.info>.desc{padding:0px 10px}.event-list>li>.info>ul{position:absolute;left:0px;bottom:0px;background-color:#D2D2D2}}
\ No newline at end of file
+html,body{height:100%}body{font-family:'Open Sans',sans-serif}table{margin:0}label.required::after{content:'*';color:red;padding-left:3px;font-size:9px}@media (min-width:1200px){.container{width:960px}}section.container{padding:40px;background-color:#ffffff;margin-bottom:25px}.section_head{border:none !important;font-size:35px;text-align:center;margin:0;margin-bottom:30px;letter-spacing:.2em;font-weight:200}.section_head h1{margin:0;font-weight:100;text-align:center}section{color:#666}#organiser_page_wrap #intro{position:relative;text-align:center;font-weight:100;padding:20px 0 20px 0;border:none;margin-bottom:0;margin-top:20px;color:#fff;background-color:#AF5050}#organiser_page_wrap .organiser_logo{max-width:150px;margin:0 auto}#organiser_page_wrap .organiser_logo .thumbnail{background-color:transparent;border:none}#goLiveBar{background-color:rgba(255,255,255,0.9);text-align:center;padding:10px}.adminLink,.adminLink:hover{color:#fff}#event_page_wrap{min-height:100%;margin:0 auto -60px;background:rgba(0,0,0,0.4)}#event_page_wrap #organiserHead{text-align:center;color:#fff;border:none;font-size:15px;opacity:.6;transition:all .15s ease-in-out;background:rgba(0,0,0,0.4);line-height:30px;cursor:pointer}#event_page_wrap #organiserHead:hover{opacity:1}#event_page_wrap #intro{position:relative;text-align:center;font-weight:100;padding:20px 0 20px 0;color:#ffffff;border:none;background-color:transparent;margin-bottom:0}#event_page_wrap #intro h1{position:relative;padding:10px 10px;margin:0;font-weight:400;font-size:60px;margin-bottom:10px}#event_page_wrap #intro .event_date{font-size:15px;padding:10px;font-weight:500}#event_page_wrap #intro .event_venue{font-size:19px}#event_page_wrap #intro .event_buttons{margin-top:30px;margin-bottom:30px}#event_page_wrap #intro .event_buttons .btn-event-link{line-height:35px;font-size:17px;text-transform:uppercase;letter-spacing:5px;border:1px solid;border-color:rgba(255,255,255,0.2);text-decoration:none;color:#fff;padding:0 15px;transition:all .15s ease-in-out;width:100%;background:rgba(0,0,0,0.3)}#event_page_wrap #intro .event_buttons .btn-event-link:hover{border-color:rgba(255,255,255,0.6)}#event_page_wrap #tickets .input-group-addon{background:none;border:none}#event_page_wrap #tickets table tr:first-child td{border-top:none}#event_page_wrap #tickets table tr td{padding:20px 0px}#event_page_wrap #details .event_poster img{border:4px solid #f6f6f6;max-width:100%;min-width:100%}#event_page_wrap #details .event_details iframe,#event_page_wrap #details .event_details img{max-width:100%}#event_page_wrap #details .event_details h1,#event_page_wrap #details .event_details h2,#event_page_wrap #details .event_details h3,#event_page_wrap #details .event_details h4,#event_page_wrap #details .event_details h5,#event_page_wrap #details .event_details h6{margin-top:0px;margin-bottom:15px;font-weight:100}#event_page_wrap #details .event_details h1{font-size:28px}#event_page_wrap #details .event_details h2{font-size:24px}#event_page_wrap #details .event_details h3{font-size:20px}#event_page_wrap #details .event_details h4{font-size:17px}#event_page_wrap #share .btn{margin-bottom:20px}#event_page_wrap #location{padding:0px}#event_page_wrap #location .google-maps{position:relative;overflow:hidden}#event_page_wrap #location .google-maps iframe{width:100% !important;height:100% !important;min-height:500px}footer,.push{height:60px}#footer{background-color:#888;background-color:rgba(0,0,0,0.4);min-height:60px;line-height:60px;color:#fff;text-align:center}#organiser{text-align:center}#organiser .contact_form{display:none;padding:20px;margin-top:25px;text-align:left}.totop{border-radius:0;background-color:#888;background-color:rgba(0,0,0,0.4)}.totop:hover{background-color:#fff;background-color:rgba(255,255,255,0.4);color:#000}.powered_by_embedded{text-align:center;padding:4px}.powered_by_embedded a{color:#333 !important}@media (min-width:100px) and (max-width:767px){.row{margin:0}section.container{margin-bottom:0;padding:10px}.section_head{padding:10px;font-size:30px}.main_content{padding:0px;background:#fff}#organiser_page_wrap #intro{padding:30px;margin-top:0}#organiser_page_wrap #intro h1{font-size:2.236em;padding:15px}#organiser_page_wrap #events{min-height:350px}#event_page_wrap #intro{padding:30px}#event_page_wrap #intro .event_date h2{font-size:20px}#event_page_wrap #intro .event_date h4{font-size:11px}#event_page_wrap #intro h1{font-size:2.236em;padding:15px}#event_page_wrap #intro .event_venue{color:#fff;font-size:20px;margin-top:10px}#event_page_wrap #intro .event_buttons{margin-top:50px}#event_page_wrap #intro .event_buttons .btn-event-link{padding:5px 0px;font-size:18px;margin-bottom:5px;line-height:30px}#event_page_wrap #tickets .btn-checkout{width:100%}#event_page_wrap #location .google-maps iframe{min-height:290px}.content{padding:15px}}.rrssb-buttons.large-format li a{border-radius:0}.event-listing-heading{margin-top:0;margin-bottom:10px;font-size:20px}.event-list{list-style:none;margin:0px;padding:0px}.event-list>li{background-color:#F3F3F3;padding:0px;margin:0px 0px 20px}.event-list>li>time{display:inline-block;width:100%;padding:5px;text-align:center;text-transform:uppercase}.event-list>li>time>span{display:none}.event-list>li>time>.day{display:block;font-size:18pt;font-weight:100;line-height:1}.event-list>li time>.month{display:block;font-size:24pt;font-weight:900;line-height:1}.event-list>li>img{width:100%}.event-list>li>.info{padding-top:10px;text-align:center}.event-list>li>.info>.title{font-size:15pt;font-weight:500;margin:0px}.event-list>li>.info>.desc{font-size:10pt;font-weight:300;margin:0px}.event-list>li>.info>ul{display:table;list-style:none;margin:10px 0px 0px;padding:0px;width:100%;text-align:center;background-color:#DEDEDE}.event-list>li>.info>ul>li{display:table-cell;cursor:pointer;color:#1e1e1e;font-size:11pt;font-weight:300;padding:3px 0px}.event-list>li>.info>ul>li>a{display:block;width:100%;color:#6D6D6D;text-decoration:none}.event-list>li>.info>ul>li:hover{color:#1e1e1e;background-color:#c8c8c8}@media (min-width:768px){.event-list>li{position:relative;display:block;width:100%;height:120px;padding:0px}.event-list>li>time,.event-list>li>img{display:inline-block}.event-list>li>time,.event-list>li>img{width:120px;float:left}.event-list>li>.info{background-color:#f5f5f5;overflow:hidden}.event-list>li>time,.event-list>li>img{width:120px;height:120px;padding:0px;margin:0px}.event-list>li>time>.day{font-size:56pt}.event-list>li>.info{position:relative;height:120px;text-align:left;padding-right:40px;padding-top:30px}.event-list>li>.info>.title,.event-list>li>.info>.desc{padding:0px 10px}.event-list>li>.info>ul{position:absolute;left:0px;bottom:0px;background-color:#D2D2D2}}
diff --git a/public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker-ltie9.min.js b/public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker-ltie9.min.js
deleted file mode 100644
index a411cfad..00000000
--- a/public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker-ltie9.min.js
+++ /dev/null
@@ -1,11 +0,0 @@
-/* -----------------------------------------------------------------------------
-
- jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
- Version 0.1.26
- Copyright (c)2016 Curious Solutions LLP and Neha Kadam
- http://curioussolutions.github.io/DateTimePicker
- https://github.com/CuriousSolutions/DateTimePicker
-
- ----------------------------------------------------------------------------- */
-
-Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length,c=Number(arguments[1])||0;for(c=0>c?Math.ceil(c):Math.floor(c),0>c&&(c+=b);b>c;c++)if(c in this&&this[c]===a)return c;return-1}),jQuery.fn.fadeIn=function(){this.show()},jQuery.fn.fadeOut=function(){this.hide()};
\ No newline at end of file
diff --git a/public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker.min.js b/public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker.min.js
deleted file mode 100644
index e44bc89c..00000000
--- a/public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker.min.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/* -----------------------------------------------------------------------------
-
- jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
- Version 0.1.26
- Copyright (c)2016 Curious Solutions LLP and Neha Kadam
- http://curioussolutions.github.io/DateTimePicker
- https://github.com/CuriousSolutions/DateTimePicker
-
- ----------------------------------------------------------------------------- */
-
-$.DateTimePicker=$.DateTimePicker||{name:"DateTimePicker",i18n:{},defaults:{mode:"date",defaultDate:null,dateSeparator:"-",timeSeparator:":",timeMeridiemSeparator:" ",dateTimeSeparator:" ",monthYearSeparator:" ",dateTimeFormat:"dd-MM-yyyy HH:mm",dateFormat:"dd-MM-yyyy",timeFormat:"HH:mm",maxDate:null,minDate:null,maxTime:null,minTime:null,maxDateTime:null,minDateTime:null,shortDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fullDayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fullMonthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],labels:null,minuteInterval:1,roundOffMinutes:!0,secondsInterval:1,roundOffSeconds:!0,titleContentDate:"Set Date",titleContentTime:"Set Time",titleContentDateTime:"Set Date & Time",buttonsToDisplay:["HeaderCloseButton","SetButton","ClearButton"],setButtonContent:"Set",clearButtonContent:"Clear",incrementButtonContent:"+",decrementButtonContent:"-",setValueInTextboxOnEveryClick:!1,animationDuration:400,isPopup:!0,parentElement:"body",language:"",init:null,addEventHandlers:null,beforeShow:null,afterShow:null,beforeHide:null,afterHide:null,buttonClicked:null,settingValueOfElement:null,formatHumanDate:null,parseDateTimeString:null,formatDateTimeString:null},dataObject:{dCurrentDate:new Date,iCurrentDay:0,iCurrentMonth:0,iCurrentYear:0,iCurrentHour:0,iCurrentMinutes:0,iCurrentSeconds:0,sCurrentMeridiem:"",iMaxNumberOfDays:0,sDateFormat:"",sTimeFormat:"",sDateTimeFormat:"",dMinValue:null,dMaxValue:null,sArrInputDateFormats:[],sArrInputTimeFormats:[],sArrInputDateTimeFormats:[],bArrMatchFormat:[],bDateMode:!1,bTimeMode:!1,bDateTimeMode:!1,oInputElement:null,iTabIndex:0,bElemFocused:!1,bIs12Hour:!1}},$.cf={_isValid:function(a){return void 0!==a&&null!==a&&""!==a},_compare:function(a,b){var c=void 0!==a&&null!==a,d=void 0!==b&&null!==b;return c&&d&&a.toLowerCase()===b.toLowerCase()?!0:!1}},function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";function b(b,c){this.element=b;var d="";d=a.cf._isValid(c)&&a.cf._isValid(c.language)?c.language:a.DateTimePicker.defaults.language,this.settings=a.extend({},a.DateTimePicker.defaults,a.DateTimePicker.i18n[d],c),this.options=c,this.oData=a.extend({},a.DateTimePicker.dataObject),this._defaults=a.DateTimePicker.defaults,this._name=a.DateTimePicker.name,this.init()}a.fn.DateTimePicker=function(c){var d,e,f=a(this).data(),g=f?Object.keys(f):[];if("string"!=typeof c)return this.each(function(){a.removeData(this,"plugin_DateTimePicker"),a.data(this,"plugin_DateTimePicker")||a.data(this,"plugin_DateTimePicker",new b(this,c))});if(a.cf._isValid(f))if("destroy"===c)if(g.length>0){for(d in g)if(e=g[d],-1!==e.search("plugin_DateTimePicker")){a(document).unbind("click.DateTimePicker"),a(document).unbind("keydown.DateTimePicker"),a(document).unbind("keyup.DateTimePicker"),a(this).children().remove(),a(this).removeData(),a(this).unbind(),a(this).removeClass("dtpicker-overlay dtpicker-mobile"),f=f[e],console.log("Destroyed DateTimePicker Object"),console.log(f);break}}else console.log("No DateTimePicker Object Defined For This Element");else if("object"===c)if(g.length>0){for(d in g)if(e=g[d],-1!==e.search("plugin_DateTimePicker"))return f[e]}else console.log("No DateTimePicker Object Defined For This Element")},b.prototype={init:function(){var b=this;b._setDateFormatArray(),b._setTimeFormatArray(),b._setDateTimeFormatArray(),b.settings.isPopup&&(b._createPicker(),a(b.element).addClass("dtpicker-mobile")),b.settings.init&&b.settings.init.call(b),b._addEventHandlersForInput()},_setDateFormatArray:function(){var a=this;a.oData.sArrInputDateFormats=[];var b="";b="dd"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b),b="MM"+a.settings.dateSeparator+"dd"+a.settings.dateSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b),b="yyyy"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"dd",a.oData.sArrInputDateFormats.push(b),b="dd"+a.settings.dateSeparator+"MMM"+a.settings.dateSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b),b="MM"+a.settings.monthYearSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b),b="MMM"+a.settings.monthYearSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b),b="MMMM"+a.settings.monthYearSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b)},_setTimeFormatArray:function(){var a=this;a.oData.sArrInputTimeFormats=[];var b="";b="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss"+a.settings.timeMeridiemSeparator+"AA",a.oData.sArrInputTimeFormats.push(b),b="HH"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss",a.oData.sArrInputTimeFormats.push(b),b="hh"+a.settings.timeSeparator+"mm"+a.settings.timeMeridiemSeparator+"AA",a.oData.sArrInputTimeFormats.push(b),b="HH"+a.settings.timeSeparator+"mm",a.oData.sArrInputTimeFormats.push(b)},_setDateTimeFormatArray:function(){var a=this;a.oData.sArrInputDateTimeFormats=[];var b="",c="",d="";b="dd"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"yyyy",c="HH"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="MM"+a.settings.dateSeparator+"dd"+a.settings.dateSeparator+"yyyy",c="HH"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="MM"+a.settings.dateSeparator+"dd"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="yyyy"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"dd",c="HH"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="yyyy"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"dd",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MMM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MMM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"yyyy",c="HH"+a.settings.timeSeparator+"mm",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="MM"+a.settings.dateSeparator+"dd"+a.settings.dateSeparator+"yyyy",c="HH"+a.settings.timeSeparator+"mm",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="MM"+a.settings.dateSeparator+"dd"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="yyyy"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"dd",c="HH"+a.settings.timeSeparator+"mm",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="yyyy"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"dd",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MMM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MMM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d)},_matchFormat:function(b,c){var d=this;d.oData.bArrMatchFormat=[],d.oData.bDateMode=!1,d.oData.bTimeMode=!1,d.oData.bDateTimeMode=!1;var e,f=[];for(b=a.cf._isValid(b)?b:d.settings.mode,a.cf._compare(b,"date")?(c=a.cf._isValid(c)?c:d.oData.sDateFormat,d.oData.bDateMode=!0,f=d.oData.sArrInputDateFormats):a.cf._compare(b,"time")?(c=a.cf._isValid(c)?c:d.oData.sTimeFormat,d.oData.bTimeMode=!0,f=d.oData.sArrInputTimeFormats):a.cf._compare(b,"datetime")&&(c=a.cf._isValid(c)?c:d.oData.sDateTimeFormat,d.oData.bDateTimeMode=!0,f=d.oData.sArrInputDateTimeFormats),e=0;e
0&&d._matchFormat(b,c)},_createPicker:function(){var b=this;a(b.element).addClass("dtpicker-overlay"),a(".dtpicker-overlay").click(function(a){b._hidePicker("")});var c="";c+="",a(b.element).html(c)},_addEventHandlersForInput:function(){var b=this;b.oData.oInputElement=null,a(b.settings.parentElement).find("input[type='date'], input[type='time'], input[type='datetime']").each(function(){a(this).attr("data-field",a(this).attr("type")),a(this).attr("type","text")});var c="[data-field='date'], [data-field='time'], [data-field='datetime']";a(b.settings.parentElement).off("focus",c,b._inputFieldFocus),a(b.settings.parentElement).on("focus",c,{obj:b},b._inputFieldFocus),a(b.settings.parentElement).off("click",c,b._inputFieldClick),a(b.settings.parentElement).on("click",c,{obj:b},b._inputFieldClick),b.settings.addEventHandlers&&b.settings.addEventHandlers.call(b)},_inputFieldFocus:function(a){var b=a.data.obj;b.showDateTimePicker(this),b.oData.bMouseDown=!1},_inputFieldClick:function(b){var c=b.data.obj;a.cf._compare(a(this).prop("tagName"),"input")||c.showDateTimePicker(this),b.stopPropagation()},getDateObjectForInputField:function(b){var c=this;if(a.cf._isValid(b)){var d,e=c._getValueOfElement(b),f=a(b).data("field"),g="";return a.cf._isValid(f)||(f=c.settings.mode),c.settings.formatDateTimeString?d=c.settings.parseDateTimeString.call(c,e,f,a(b)):(g=a(b).data("format"),a.cf._isValid(g)||(a.cf._compare(f,"date")?g=c.settings.dateFormat:a.cf._compare(f,"time")?g=c.settings.timeFormat:a.cf._compare(f,"datetime")&&(g=c.settings.dateTimeFormat)),c._matchFormat(f,g),a.cf._compare(f,"date")?d=c._parseDate(e):a.cf._compare(f,"time")?d=c._parseTime(e):a.cf._compare(f,"datetime")&&(d=c._parseDateTime(e))),d}},setDateTimeStringInInputField:function(b,c){var d=this;c=c||d.oData.dCurrentDate;var e;a.cf._isValid(b)?(e=[],"string"==typeof b?e.push(b):"object"==typeof b&&(e=b)):e=a.cf._isValid(d.settings.parentElement)?a(d.settings.parentElement).find("[data-field='date'], [data-field='time'], [data-field='datetime']"):a("[data-field='date'], [data-field='time'], [data-field='datetime']"),e.each(function(){var b,e,f,g,h=this;b=a(h).data("field"),a.cf._isValid(b)||(b=d.settings.mode),e="Custom",f=!1,d.settings.formatDateTimeString||(e=a(h).data("format"),a.cf._isValid(e)||(a.cf._compare(b,"date")?e=d.settings.dateFormat:a.cf._compare(b,"time")?e=d.settings.timeFormat:a.cf._compare(b,"datetime")&&(e=d.settings.dateTimeFormat)),f=d.getIs12Hour(b,e)),g=d._setOutput(b,e,f,c,h),d._setValueOfElement(g,a(h))})},getDateTimeStringInFormat:function(a,b,c){var d=this;return d._setOutput(a,b,d.getIs12Hour(a,b),c)},showDateTimePicker:function(a){var b=this;null!==b.oData.oInputElement?b._hidePicker(0,a):b._showPicker(a)},_setButtonAction:function(a){var b=this;null!==b.oData.oInputElement&&(b._setValueOfElement(b._setOutput()),a?(b.settings.buttonClicked&&b.settings.buttonClicked.call(b,"TAB",b.oData.oInputElement),b._hidePicker(0)):b._hidePicker(""))},_setOutput:function(b,c,d,e,f){var g=this;e=a.cf._isValid(e)?e:g.oData.dCurrentDate,d=d||g.oData.bIs12Hour;var h,i=g._setVariablesForDate(e,!0,!0),j="",k=g._formatDate(i),l=g._formatTime(i),m=a.extend({},k,l),n="",o="",p=Function.length;return g.settings.formatDateTimeString?j=g.settings.formatDateTimeString.call(g,m,b,f):(g._setMatchFormat(p,b,c),g.oData.bDateMode?g.oData.bArrMatchFormat[0]?j=m.dd+g.settings.dateSeparator+m.MM+g.settings.dateSeparator+m.yyyy:g.oData.bArrMatchFormat[1]?j=m.MM+g.settings.dateSeparator+m.dd+g.settings.dateSeparator+m.yyyy:g.oData.bArrMatchFormat[2]?j=m.yyyy+g.settings.dateSeparator+m.MM+g.settings.dateSeparator+m.dd:g.oData.bArrMatchFormat[3]?j=m.dd+g.settings.dateSeparator+m.monthShort+g.settings.dateSeparator+m.yyyy:g.oData.bArrMatchFormat[4]?j=m.MM+g.settings.monthYearSeparator+m.yyyy:g.oData.bArrMatchFormat[5]?j=m.monthShort+g.settings.monthYearSeparator+m.yyyy:g.oData.bArrMatchFormat[6]&&(j=m.month+g.settings.monthYearSeparator+m.yyyy):g.oData.bTimeMode?g.oData.bArrMatchFormat[0]?j=m.hh+g.settings.timeSeparator+m.mm+g.settings.timeSeparator+m.ss+g.settings.timeMeridiemSeparator+m.ME:g.oData.bArrMatchFormat[1]?j=m.HH+g.settings.timeSeparator+m.mm+g.settings.timeSeparator+m.ss:g.oData.bArrMatchFormat[2]?j=m.hh+g.settings.timeSeparator+m.mm+g.settings.timeMeridiemSeparator+m.ME:g.oData.bArrMatchFormat[3]&&(j=m.HH+g.settings.timeSeparator+m.mm):g.oData.bDateTimeMode&&(g.oData.bArrMatchFormat[0]||g.oData.bArrMatchFormat[1]||g.oData.bArrMatchFormat[8]||g.oData.bArrMatchFormat[9]?n=m.dd+g.settings.dateSeparator+m.MM+g.settings.dateSeparator+m.yyyy:g.oData.bArrMatchFormat[2]||g.oData.bArrMatchFormat[3]||g.oData.bArrMatchFormat[10]||g.oData.bArrMatchFormat[11]?n=m.MM+g.settings.dateSeparator+m.dd+g.settings.dateSeparator+m.yyyy:g.oData.bArrMatchFormat[4]||g.oData.bArrMatchFormat[5]||g.oData.bArrMatchFormat[12]||g.oData.bArrMatchFormat[13]?n=m.yyyy+g.settings.dateSeparator+m.MM+g.settings.dateSeparator+m.dd:(g.oData.bArrMatchFormat[6]||g.oData.bArrMatchFormat[7]||g.oData.bArrMatchFormat[14]||g.oData.bArrMatchFormat[15])&&(n=m.dd+g.settings.dateSeparator+m.monthShort+g.settings.dateSeparator+m.yyyy),h=g.oData.bArrMatchFormat[0]||g.oData.bArrMatchFormat[1]||g.oData.bArrMatchFormat[2]||g.oData.bArrMatchFormat[3]||g.oData.bArrMatchFormat[4]||g.oData.bArrMatchFormat[5]||g.oData.bArrMatchFormat[6]||g.oData.bArrMatchFormat[7],o=d?h?m.hh+g.settings.timeSeparator+m.mm+g.settings.timeSeparator+m.ss+g.settings.timeMeridiemSeparator+m.ME:m.hh+g.settings.timeSeparator+m.mm+g.settings.timeMeridiemSeparator+m.ME:h?m.HH+g.settings.timeSeparator+m.mm+g.settings.timeSeparator+m.ss:m.HH+g.settings.timeSeparator+m.mm,""!==n&&""!==o&&(j=n+g.settings.dateTimeSeparator+o)),g._setMatchFormat(p)),j},_clearButtonAction:function(){var a=this;null!==a.oData.oInputElement&&a._setValueOfElement(""),a._hidePicker("")},_setOutputOnIncrementOrDecrement:function(){var b=this;a.cf._isValid(b.oData.oInputElement)&&b.settings.setValueInTextboxOnEveryClick&&b._setValueOfElement(b._setOutput())},_showPicker:function(b){var c=this;if(null===c.oData.oInputElement){c.oData.oInputElement=b,c.oData.iTabIndex=parseInt(a(b).attr("tabIndex"));var d=a(b).data("field")||"",e=a(b).data("min")||"",f=a(b).data("max")||"",g=a(b).data("format")||"",h=a(b).data("view")||"",i=a(b).data("startend")||"",j=a(b).data("startendelem")||"",k=c._getValueOfElement(b)||"";if(""!==h&&c.setIsPopup(a.cf._compare(h,"Popup")?!0:!1),!c.settings.isPopup){c._createPicker();var l=a(c.oData.oInputElement).offset().top+a(c.oData.oInputElement).outerHeight(),m=a(c.oData.oInputElement).offset().left,n=a(c.oData.oInputElement).outerWidth();a(c.element).css({position:"absolute",top:l,left:m,width:n,height:"auto"})}c.settings.beforeShow&&c.settings.beforeShow.call(c,b),d=a.cf._isValid(d)?d:c.settings.mode,c.settings.mode=d,a.cf._isValid(g)||(a.cf._compare(d,"date")?g=c.settings.dateFormat:a.cf._compare(d,"time")?g=c.settings.timeFormat:a.cf._compare(d,"datetime")&&(g=c.settings.dateTimeFormat)),c._matchFormat(d,g),c.oData.dMinValue=null,c.oData.dMaxValue=null,c.oData.bIs12Hour=!1;var o,p,q,r,s,t,u,v;c.oData.bDateMode?(o=e||c.settings.minDate,p=f||c.settings.maxDate,c.oData.sDateFormat=g,a.cf._isValid(o)&&(c.oData.dMinValue=c._parseDate(o)),a.cf._isValid(p)&&(c.oData.dMaxValue=c._parseDate(p)),""!==i&&(a.cf._compare(i,"start")||a.cf._compare(i,"end"))&&""!==j&&a(j).length>=1&&(q=c._getValueOfElement(a(j)),""!==q&&(r=c.settings.parseDateTimeString?c.settings.parseDateTimeString.call(c,q,d,a(j)):c._parseDate(q),a.cf._compare(i,"start")?a.cf._isValid(p)?c._compareDates(r,c.oData.dMaxValue)<0&&(c.oData.dMaxValue=new Date(r)):c.oData.dMaxValue=new Date(r):a.cf._compare(i,"end")&&(a.cf._isValid(o)?c._compareDates(r,c.oData.dMinValue)>0&&(c.oData.dMinValue=new Date(r)):c.oData.dMinValue=new Date(r)))),c.oData.dCurrentDate=c.settings.parseDateTimeString?c.settings.parseDateTimeString.call(c,k,d,a(b)):c._parseDate(k),c.oData.dCurrentDate.setHours(0),c.oData.dCurrentDate.setMinutes(0),c.oData.dCurrentDate.setSeconds(0)):c.oData.bTimeMode?(o=e||c.settings.minTime,p=f||c.settings.maxTime,c.oData.sTimeFormat=g,c.oData.bIs12Hour=c.getIs12Hour(),a.cf._isValid(o)&&(c.oData.dMinValue=c._parseTime(o)),a.cf._isValid(p)&&(c.oData.dMaxValue=c._parseTime(p)),""!==i&&(a.cf._compare(i,"start")||a.cf._compare(i,"end"))&&""!==j&&a(j).length>=1&&(s=c._getValueOfElement(a(j)),""!==s&&(c.settings.parseDateTimeString?r=c.settings.parseDateTimeString.call(c,s,d,a(j)):t=c._parseTime(s),a.cf._compare(i,"start")?(t.setMinutes(t.getMinutes()-1),a.cf._isValid(p)?2===c._compareTime(t,c.oData.dMaxValue)&&(c.oData.dMaxValue=new Date(t)):c.oData.dMaxValue=new Date(t)):a.cf._compare(i,"end")&&(t.setMinutes(t.getMinutes()+1),a.cf._isValid(o)?3===c._compareTime(t,c.oData.dMinValue)&&(c.oData.dMinValue=new Date(t)):c.oData.dMinValue=new Date(t)))),c.oData.dCurrentDate=c.settings.parseDateTimeString?c.settings.parseDateTimeString.call(c,k,d,a(b)):c._parseTime(k)):c.oData.bDateTimeMode&&(o=e||c.settings.minDateTime,p=f||c.settings.maxDateTime,c.oData.sDateTimeFormat=g,c.oData.bIs12Hour=c.getIs12Hour(),a.cf._isValid(o)&&(c.oData.dMinValue=c._parseDateTime(o)),a.cf._isValid(p)&&(c.oData.dMaxValue=c._parseDateTime(p)),""!==i&&(a.cf._compare(i,"start")||a.cf._compare(i,"end"))&&""!==j&&a(j).length>=1&&(u=c._getValueOfElement(a(j)),""!==u&&(v=c.settings.parseDateTimeString?c.settings.parseDateTimeString.call(c,u,d,a(j)):c._parseDateTime(u),a.cf._compare(i,"start")?a.cf._isValid(p)?c._compareDateTime(v,c.oData.dMaxValue)<0&&(c.oData.dMaxValue=new Date(v)):c.oData.dMaxValue=new Date(v):a.cf._compare(i,"end")&&(a.cf._isValid(o)?c._compareDateTime(v,c.oData.dMinValue)>0&&(c.oData.dMinValue=new Date(v)):c.oData.dMinValue=new Date(v)))),c.oData.dCurrentDate=c.settings.parseDateTimeString?c.settings.parseDateTimeString.call(c,k,d,a(b)):c._parseDateTime(k)),c._setVariablesForDate(),c._modifyPicker(),a(c.element).fadeIn(c.settings.animationDuration),c.settings.afterShow&&setTimeout(function(){c.settings.afterShow.call(c,b)},c.settings.animationDuration)}},_hidePicker:function(b,c){var d=this,e=d.oData.oInputElement;d.settings.beforeHide&&d.settings.beforeHide.call(d,e),a.cf._isValid(b)||(b=d.settings.animationDuration),a.cf._isValid(d.oData.oInputElement)&&(a(d.oData.oInputElement).blur(),d.oData.oInputElement=null),a(d.element).fadeOut(b),0===b?a(d.element).find(".dtpicker-subcontent").html(""):setTimeout(function(){a(d.element).find(".dtpicker-subcontent").html("")},b),a(document).unbind("click.DateTimePicker"),a(document).unbind("keydown.DateTimePicker"),a(document).unbind("keyup.DateTimePicker"),d.settings.afterHide&&(0===b?d.settings.afterHide.call(d,e):setTimeout(function(){d.settings.afterHide.call(d,e)},b)),a.cf._isValid(c)&&d._showPicker(c)},_modifyPicker:function(){var b,c,d=this,e=[];d.oData.bDateMode?(b=d.settings.titleContentDate,c=3,d.oData.bArrMatchFormat[0]?e=["day","month","year"]:d.oData.bArrMatchFormat[1]?e=["month","day","year"]:d.oData.bArrMatchFormat[2]?e=["year","month","day"]:d.oData.bArrMatchFormat[3]?e=["day","month","year"]:d.oData.bArrMatchFormat[4]?(c=2,e=["month","year"]):d.oData.bArrMatchFormat[5]?(c=2,e=["month","year"]):d.oData.bArrMatchFormat[6]&&(c=2,e=["month","year"])):d.oData.bTimeMode?(b=d.settings.titleContentTime,d.oData.bArrMatchFormat[0]?(c=4,e=["hour","minutes","seconds","meridiem"]):d.oData.bArrMatchFormat[1]?(c=3,e=["hour","minutes","seconds"]):d.oData.bArrMatchFormat[2]?(c=3,e=["hour","minutes","meridiem"]):d.oData.bArrMatchFormat[3]&&(c=2,e=["hour","minutes"])):d.oData.bDateTimeMode&&(b=d.settings.titleContentDateTime,d.oData.bArrMatchFormat[0]?(c=6,e=["day","month","year","hour","minutes","seconds"]):d.oData.bArrMatchFormat[1]?(c=7,e=["day","month","year","hour","minutes","seconds","meridiem"]):d.oData.bArrMatchFormat[2]?(c=6,e=["month","day","year","hour","minutes","seconds"]):d.oData.bArrMatchFormat[3]?(c=7,e=["month","day","year","hour","minutes","seconds","meridiem"]):d.oData.bArrMatchFormat[4]?(c=6,e=["year","month","day","hour","minutes","seconds"]):d.oData.bArrMatchFormat[5]?(c=7,e=["year","month","day","hour","minutes","seconds","meridiem"]):d.oData.bArrMatchFormat[6]?(c=6,e=["day","month","year","hour","minutes","seconds"]):d.oData.bArrMatchFormat[7]?(c=7,e=["day","month","year","hour","minutes","seconds","meridiem"]):d.oData.bArrMatchFormat[8]?(c=5,e=["day","month","year","hour","minutes"]):d.oData.bArrMatchFormat[9]?(c=6,e=["day","month","year","hour","minutes","meridiem"]):d.oData.bArrMatchFormat[10]?(c=5,e=["month","day","year","hour","minutes"]):d.oData.bArrMatchFormat[11]?(c=6,e=["month","day","year","hour","minutes","meridiem"]):d.oData.bArrMatchFormat[12]?(c=5,e=["year","month","day","hour","minutes"]):d.oData.bArrMatchFormat[13]?(c=6,e=["year","month","day","hour","minutes","meridiem"]):d.oData.bArrMatchFormat[14]?(c=5,e=["day","month","year","hour","minutes"]):d.oData.bArrMatchFormat[15]&&(c=6,e=["day","month","year","hour","minutes","meridiem"]));var f,g="dtpicker-comp"+c,h=!1,i=!1,j=!1;for(f=0;f";var l="";for(l+="
",f=0;c>f;f++){var m=e[f];l+="
"}l+="
";var n="";n=i&&j?" dtpicker-twoButtons":" dtpicker-singleButton";var o="";o+="
";var p=k+l+o;a(d.element).find(".dtpicker-subcontent").html(p),d._setCurrentDate(),d._addEventHandlersForPicker()},_addEventHandlersForPicker:function(){var b=this;a(document).on("click.DateTimePicker",function(a){b._hidePicker("")}),a(document).on("keydown.DateTimePicker",function(c){return a(".dtpicker-compValue").is(":focus")||9!==parseInt(c.keyCode?c.keyCode:c.which)?void 0:(b._setButtonAction(!0),a("[tabIndex="+(b.oData.iTabIndex+1)+"]").focus(),!1)}),a(document).on("keydown.DateTimePicker",function(c){a(".dtpicker-compValue").is(":focus")||9===parseInt(c.keyCode?c.keyCode:c.which)||b._hidePicker("")}),a(".dtpicker-cont *").click(function(a){a.stopPropagation()}),a(".dtpicker-compValue").not(".month .dtpicker-compValue, .meridiem .dtpicker-compValue").keyup(function(){this.value=this.value.replace(/[^0-9\.]/g,"")}),a(".dtpicker-compValue").focus(function(){b.oData.bElemFocused=!0,a(this).select()}),a(".dtpicker-compValue").blur(function(){b._getValuesFromInputBoxes(),b._setCurrentDate(),b.oData.bElemFocused=!1;var c=a(this).parent().parent();setTimeout(function(){c.is(":last-child")&&!b.oData.bElemFocused&&b._setButtonAction(!1)},50)}),a(".dtpicker-compValue").keyup(function(b){var c,d=a(this),e=d.val(),f=e.length;d.parent().hasClass("day")||d.parent().hasClass("hour")||d.parent().hasClass("minutes")||d.parent().hasClass("meridiem")?f>2&&(c=e.slice(0,2),d.val(c)):d.parent().hasClass("month")?f>3&&(c=e.slice(0,3),d.val(c)):d.parent().hasClass("year")&&f>4&&(c=e.slice(0,4),d.val(c)),9===parseInt(b.keyCode?b.keyCode:b.which)&&a(this).select()}),a(b.element).find(".dtpicker-close").click(function(a){b.settings.buttonClicked&&b.settings.buttonClicked.call(b,"CLOSE",b.oData.oInputElement),b._hidePicker("")}),a(b.element).find(".dtpicker-buttonSet").click(function(a){b.settings.buttonClicked&&b.settings.buttonClicked.call(b,"SET",b.oData.oInputElement),b._setButtonAction(!1)}),a(b.element).find(".dtpicker-buttonClear").click(function(a){b.settings.buttonClicked&&b.settings.buttonClicked.call(b,"CLEAR",b.oData.oInputElement),b._clearButtonAction()}),a(b.element).find(".day .increment, .day .increment *").click(function(a){b.oData.iCurrentDay++,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".day .decrement, .day .decrement *").click(function(a){b.oData.iCurrentDay--,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".month .increment, .month .increment *").click(function(a){b.oData.iCurrentMonth++,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".month .decrement, .month .decrement *").click(function(a){b.oData.iCurrentMonth--,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".year .increment, .year .increment *").click(function(a){b.oData.iCurrentYear++,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".year .decrement, .year .decrement *").click(function(a){b.oData.iCurrentYear--,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".hour .increment, .hour .increment *").click(function(a){b.oData.iCurrentHour++,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".hour .decrement, .hour .decrement *").click(function(a){b.oData.iCurrentHour--,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".minutes .increment, .minutes .increment *").click(function(a){b.oData.iCurrentMinutes+=b.settings.minuteInterval,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".minutes .decrement, .minutes .decrement *").click(function(a){b.oData.iCurrentMinutes-=b.settings.minuteInterval,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".seconds .increment, .seconds .increment *").click(function(a){b.oData.iCurrentSeconds+=b.settings.secondsInterval,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".seconds .decrement, .seconds .decrement *").click(function(a){b.oData.iCurrentSeconds-=b.settings.secondsInterval,b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()}),a(b.element).find(".meridiem .dtpicker-compButton, .meridiem .dtpicker-compButton *").click(function(c){a.cf._compare(b.oData.sCurrentMeridiem,"AM")?(b.oData.sCurrentMeridiem="PM",b.oData.iCurrentHour+=12):a.cf._compare(b.oData.sCurrentMeridiem,"PM")&&(b.oData.sCurrentMeridiem="AM",b.oData.iCurrentHour-=12),b._setCurrentDate(),b._setOutputOnIncrementOrDecrement()})},_adjustMinutes:function(a){var b=this;return b.settings.roundOffMinutes&&1!==b.settings.minuteInterval&&(a=a%b.settings.minuteInterval?a-a%b.settings.minuteInterval+b.settings.minuteInterval:a),a},_adjustSeconds:function(a){var b=this;return b.settings.roundOffSeconds&&1!==b.settings.secondsInterval&&(a=a%b.settings.secondsInterval?a-a%b.settings.secondsInterval+b.settings.secondsInterval:a),a},_getValueOfElement:function(b){var c="";return c=a.cf._compare(a(b).prop("tagName"),"INPUT")?a(b).val():a(b).html()},_setValueOfElement:function(b,c){var d=this;a.cf._isValid(c)||(c=a(d.oData.oInputElement)),a.cf._compare(c.prop("tagName"),"INPUT")?c.val(b):c.html(b);var e=d.getDateObjectForInputField(c);return d.settings.settingValueOfElement&&d.settings.settingValueOfElement.call(d,b,e,c),c.change(),b},_parseDate:function(b){var c=this,d=c.settings.defaultDate?new Date(c.settings.defaultDate):new Date,e=d.getDate(),f=d.getMonth(),g=d.getFullYear();if(a.cf._isValid(b)){var h;h=b.split(c.oData.bArrMatchFormat[4]||c.oData.bArrMatchFormat[5]||c.oData.bArrMatchFormat[6]?c.settings.monthYearSeparator:c.settings.dateSeparator),c.oData.bArrMatchFormat[0]?(e=parseInt(h[0]),f=parseInt(h[1]-1),g=parseInt(h[2])):c.oData.bArrMatchFormat[1]?(f=parseInt(h[0]-1),e=parseInt(h[1]),g=parseInt(h[2])):c.oData.bArrMatchFormat[2]?(g=parseInt(h[0]),f=parseInt(h[1]-1),e=parseInt(h[2])):c.oData.bArrMatchFormat[3]?(e=parseInt(h[0]),f=c._getShortMonthIndex(h[1]),g=parseInt(h[2])):c.oData.bArrMatchFormat[4]?(e=1,f=parseInt(h[0])-1,g=parseInt(h[1])):c.oData.bArrMatchFormat[5]?(e=1,f=c._getShortMonthIndex(h[0]),g=parseInt(h[1])):c.oData.bArrMatchFormat[6]&&(e=1,f=c._getFullMonthIndex(h[0]),g=parseInt(h[1]))}return d=new Date(g,f,e,0,0,0,0)},_parseTime:function(b){var c,d,e,f=this,g=f.settings.defaultDate?new Date(f.settings.defaultDate):new Date,h=g.getDate(),i=g.getMonth(),j=g.getFullYear(),k=g.getHours(),l=g.getMinutes(),m=g.getSeconds(),n=f.oData.bArrMatchFormat[0]||f.oData.bArrMatchFormat[1];return m=n?f._adjustSeconds(m):0,a.cf._isValid(b)&&(f.oData.bIs12Hour&&(c=b.split(f.settings.timeMeridiemSeparator),b=c[0],d=c[1],a.cf._compare(d,"AM")||a.cf._compare(d,"PM")||(d="")),e=b.split(f.settings.timeSeparator),k=parseInt(e[0]),l=parseInt(e[1]),n&&(m=parseInt(e[2]),m=f._adjustSeconds(m)),12===k&&a.cf._compare(d,"AM")?k=0:12>k&&a.cf._compare(d,"PM")&&(k+=12)),l=f._adjustMinutes(l),g=new Date(j,i,h,k,l,m,0)},_parseDateTime:function(b){var c,d,e,f,g,h=this,i=h.settings.defaultDate?new Date(h.settings.defaultDate):new Date,j=i.getDate(),k=i.getMonth(),l=i.getFullYear(),m=i.getHours(),n=i.getMinutes(),o=i.getSeconds(),p="",q=h.oData.bArrMatchFormat[0]||h.oData.bArrMatchFormat[1]||h.oData.bArrMatchFormat[2]||h.oData.bArrMatchFormat[3]||h.oData.bArrMatchFormat[4]||h.oData.bArrMatchFormat[5]||h.oData.bArrMatchFormat[6]||h.oData.bArrMatchFormat[7];return o=q?h._adjustSeconds(o):0,a.cf._isValid(b)&&(c=b.split(h.settings.dateTimeSeparator),d=c[0].split(h.settings.dateSeparator),h.oData.bArrMatchFormat[0]||h.oData.bArrMatchFormat[1]||h.oData.bArrMatchFormat[8]||h.oData.bArrMatchFormat[9]?(j=parseInt(d[0]),k=parseInt(d[1]-1),l=parseInt(d[2])):h.oData.bArrMatchFormat[2]||h.oData.bArrMatchFormat[3]||h.oData.bArrMatchFormat[10]||h.oData.bArrMatchFormat[11]?(k=parseInt(d[0]-1),j=parseInt(d[1]),l=parseInt(d[2])):h.oData.bArrMatchFormat[4]||h.oData.bArrMatchFormat[5]||h.oData.bArrMatchFormat[12]||h.oData.bArrMatchFormat[13]?(l=parseInt(d[0]),k=parseInt(d[1]-1),j=parseInt(d[2])):(h.oData.bArrMatchFormat[6]||h.oData.bArrMatchFormat[7]||h.oData.bArrMatchFormat[14]||h.oData.bArrMatchFormat[15])&&(j=parseInt(d[0]),k=h._getShortMonthIndex(d[1]),l=parseInt(d[2])),e=c[1],a.cf._isValid(e)&&(h.oData.bIs12Hour&&(a.cf._compare(h.settings.dateTimeSeparator,h.settings.timeMeridiemSeparator)&&3===c.length?p=c[2]:(f=e.split(h.settings.timeMeridiemSeparator),
-e=f[0],p=f[1]),a.cf._compare(p,"AM")||a.cf._compare(p,"PM")||(p="")),g=e.split(h.settings.timeSeparator),m=parseInt(g[0]),n=parseInt(g[1]),q&&(o=parseInt(g[2])),12===m&&a.cf._compare(p,"AM")?m=0:12>m&&a.cf._compare(p,"PM")&&(m+=12))),n=h._adjustMinutes(n),i=new Date(l,k,j,m,n,o,0)},_getShortMonthIndex:function(b){for(var c=this,d=0;d
1&&(c=c.charAt(0).toUpperCase()+c.slice(1)),d=b.settings.shortMonthNames.indexOf(c),-1!==d?b.oData.iCurrentMonth=parseInt(d):c.match("^[+|-]?[0-9]+$")&&(b.oData.iCurrentMonth=parseInt(c-1)),b.oData.iCurrentDay=parseInt(a(b.element).find(".day .dtpicker-compValue").val())||b.oData.iCurrentDay,b.oData.iCurrentYear=parseInt(a(b.element).find(".year .dtpicker-compValue").val())||b.oData.iCurrentYear}if(b.oData.bTimeMode||b.oData.bDateTimeMode){var e,f,g,h;e=parseInt(a(b.element).find(".hour .dtpicker-compValue").val()),f=b._adjustMinutes(parseInt(a(b.element).find(".minutes .dtpicker-compValue").val())),g=b._adjustMinutes(parseInt(a(b.element).find(".seconds .dtpicker-compValue").val())),b.oData.iCurrentHour=isNaN(e)?b.oData.iCurrentHour:e,b.oData.iCurrentMinutes=isNaN(f)?b.oData.iCurrentMinutes:f,b.oData.iCurrentSeconds=isNaN(g)?b.oData.iCurrentSeconds:g,b.oData.iCurrentSeconds>59&&(b.oData.iCurrentMinutes+=b.oData.iCurrentSeconds/60,b.oData.iCurrentSeconds=b.oData.iCurrentSeconds%60),b.oData.iCurrentMinutes>59&&(b.oData.iCurrentHour+=b.oData.iCurrentMinutes/60,b.oData.iCurrentMinutes=b.oData.iCurrentMinutes%60),b.oData.bIs12Hour?b.oData.iCurrentHour>12&&(b.oData.iCurrentHour=b.oData.iCurrentHour%12):b.oData.iCurrentHour>23&&(b.oData.iCurrentHour=b.oData.iCurrentHour%23),b.oData.bIs12Hour&&(h=a(b.element).find(".meridiem .dtpicker-compValue").val(),(a.cf._compare(h,"AM")||a.cf._compare(h,"PM"))&&(b.oData.sCurrentMeridiem=h),a.cf._compare(b.oData.sCurrentMeridiem,"PM")&&12!==b.oData.iCurrentHour&&b.oData.iCurrentHour<13&&(b.oData.iCurrentHour+=12),a.cf._compare(b.oData.sCurrentMeridiem,"AM")&&12===b.oData.iCurrentHour&&(b.oData.iCurrentHour=0))}},_setCurrentDate:function(){var b=this;(b.oData.bTimeMode||b.oData.bDateTimeMode)&&(b.oData.iCurrentSeconds>59?(b.oData.iCurrentMinutes+=b.oData.iCurrentSeconds/60,b.oData.iCurrentSeconds=b.oData.iCurrentSeconds%60):b.oData.iCurrentSeconds<0&&(b.oData.iCurrentMinutes-=b.settings.minuteInterval,b.oData.iCurrentSeconds+=60),b.oData.iCurrentMinutes=b._adjustMinutes(b.oData.iCurrentMinutes),b.oData.iCurrentSeconds=b._adjustSeconds(b.oData.iCurrentSeconds));var c,d,e,f,g,h,i,j=new Date(b.oData.iCurrentYear,b.oData.iCurrentMonth,b.oData.iCurrentDay,b.oData.iCurrentHour,b.oData.iCurrentMinutes,b.oData.iCurrentSeconds,0),k=!1,l=!1;if(null!==b.oData.dMaxValue&&(k=j.getTime()>b.oData.dMaxValue.getTime()),null!==b.oData.dMinValue&&(l=j.getTime()b.oData.dMaxValue.getTime()),null!==b.oData.dMinValue&&(n=b.oData.dCurrentDate.getTime()c?"0"+c:c,e=m.iCurrentMonth,f=m.iCurrentMonth+1,f=10>f?"0"+f:f,g=l.settings.shortMonthNames[e],h=l.settings.fullMonthNames[e],d=m.iCurrentYear,i=m.iCurrentWeekday,j=l.settings.shortDayNames[i],k=l.settings.fullDayNames[i],{dd:c,MM:f,monthShort:g,month:h,yyyy:d,dayShort:j,day:k}},_formatTime:function(b){var c,d,e,f,g,h,i,j=this,k={};return a.cf._isValid(b)?k=a.extend({},b):(k.iCurrentHour=j.oData.iCurrentHour,k.iCurrentMinutes=j.oData.iCurrentMinutes,k.iCurrentSeconds=j.oData.iCurrentSeconds,k.sCurrentMeridiem=j.oData.sCurrentMeridiem),c=k.iCurrentHour,d=10>c?"0"+c:c,g=d,e=k.iCurrentHour,e>12&&(e-=12),"00"===g&&(e=12),f=10>e?"0"+e:e,j.oData.bIs12Hour&&(g=f),h=k.iCurrentMinutes,h=10>h?"0"+h:h,i=k.iCurrentSeconds,i=10>i?"0"+i:i,{H:c,HH:d,h:e,hh:f,hour:g,m:k.iCurrentMinutes,mm:h,s:k.iCurrentSeconds,ss:i,ME:k.sCurrentMeridiem}},_setButtons:function(){var b=this;a(b.element).find(".dtpicker-compButton").removeClass("dtpicker-compButtonDisable").addClass("dtpicker-compButtonEnable");var c;if(null!==b.oData.dMaxValue&&(b.oData.bTimeMode?((b.oData.iCurrentHour+1>b.oData.dMaxValue.getHours()||b.oData.iCurrentHour+1===b.oData.dMaxValue.getHours()&&b.oData.iCurrentMinutes>b.oData.dMaxValue.getMinutes())&&a(b.element).find(".hour .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),b.oData.iCurrentHour>=b.oData.dMaxValue.getHours()&&b.oData.iCurrentMinutes+1>b.oData.dMaxValue.getMinutes()&&a(b.element).find(".minutes .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")):(c=new Date(b.oData.iCurrentYear,b.oData.iCurrentMonth,b.oData.iCurrentDay+1,b.oData.iCurrentHour,b.oData.iCurrentMinutes,b.oData.iCurrentSeconds,0),c.getTime()>b.oData.dMaxValue.getTime()&&a(b.element).find(".day .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),c=new Date(b.oData.iCurrentYear,b.oData.iCurrentMonth+1,b.oData.iCurrentDay,b.oData.iCurrentHour,b.oData.iCurrentMinutes,b.oData.iCurrentSeconds,0),c.getTime()>b.oData.dMaxValue.getTime()&&a(b.element).find(".month .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),c=new Date(b.oData.iCurrentYear+1,b.oData.iCurrentMonth,b.oData.iCurrentDay,b.oData.iCurrentHour,b.oData.iCurrentMinutes,b.oData.iCurrentSeconds,0),c.getTime()>b.oData.dMaxValue.getTime()&&a(b.element).find(".year .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),c=new Date(b.oData.iCurrentYear,b.oData.iCurrentMonth,b.oData.iCurrentDay,b.oData.iCurrentHour+1,b.oData.iCurrentMinutes,b.oData.iCurrentSeconds,0),c.getTime()>b.oData.dMaxValue.getTime()&&a(b.element).find(".hour .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),c=new Date(b.oData.iCurrentYear,b.oData.iCurrentMonth,b.oData.iCurrentDay,b.oData.iCurrentHour,b.oData.iCurrentMinutes+1,b.oData.iCurrentSeconds,0),c.getTime()>b.oData.dMaxValue.getTime()&&a(b.element).find(".minutes .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),c=new Date(b.oData.iCurrentYear,b.oData.iCurrentMonth,b.oData.iCurrentDay,b.oData.iCurrentHour,b.oData.iCurrentMinutes,b.oData.iCurrentSeconds+1,0),c.getTime()>b.oData.dMaxValue.getTime()&&a(b.element).find(".seconds .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"))),null!==b.oData.dMinValue&&(b.oData.bTimeMode?((b.oData.iCurrentHour-1b.oData.dMaxValue.getHours()||d===b.oData.dMaxValue.getHours()&&e>b.oData.dMaxValue.getMinutes())&&a(b.element).find(".meridiem .dtpicker-compButton").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")):c.getTime()>b.oData.dMaxValue.getTime()&&a(b.element).find(".meridiem .dtpicker-compButton").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")),null!==b.oData.dMinValue&&(b.oData.bTimeMode?(e=b.oData.iCurrentMinutes,(db.getHours()?c=3:a.getHours()===b.getHours()&&(a.getMinutes()b.getMinutes()&&(c=3)),c},_compareDateTime:function(a,b){var c=(a.getTime()-b.getTime())/6e4;return 0===c?c:c/Math.abs(c)},_determineMeridiemFromHourAndMinutes:function(a,b){return a>12?"PM":12===a&&b>=0?"PM":"AM"},setLanguage:function(b){var c=this;return c.settings=a.extend({},a.DateTimePicker.defaults,a.DateTimePicker.i18n[b],c.options),c._setDateFormatArray(),c._setTimeFormatArray(),c._setDateTimeFormatArray(),c}}});
\ No newline at end of file
diff --git a/public/vendor/curioussolutions-datetimepicker/.bower.json b/public/vendor/datetimepicker/.bower.json
similarity index 54%
rename from public/vendor/curioussolutions-datetimepicker/.bower.json
rename to public/vendor/datetimepicker/.bower.json
index 8d803e7e..be49394f 100644
--- a/public/vendor/curioussolutions-datetimepicker/.bower.json
+++ b/public/vendor/datetimepicker/.bower.json
@@ -12,11 +12,11 @@
"timepicker",
"input"
],
- "version": "0.1.26",
- "homepage": "http://curioussolutions.github.io/DateTimePicker/",
+ "version": "0.1.38",
+ "homepage": "https://nehakadam.github.io/DateTimePicker/",
"main": [
- "dist/DateTimePicker.js",
- "dist/DateTimePicker.css"
+ "dist/DateTimePicker.min.js",
+ "dist/DateTimePicker.min.css"
],
"authors": [
{
@@ -25,7 +25,7 @@
],
"repository": {
"type": "git",
- "url": "git://github.com:CuriousSolutions/DateTimePicker.git"
+ "url": "git://github.com:nehakadam/DateTimePicker.git"
},
"devDependencies": {
"jquery": ">=1.0.0"
@@ -35,13 +35,14 @@
"node_modules",
"package.json"
],
- "_release": "0.1.26",
+ "_release": "0.1.38",
"_resolution": {
"type": "version",
- "tag": "0.1.26",
- "commit": "5de31f36b5d81f3a527df195e66a3946d9888eaf"
+ "tag": "0.1.38",
+ "commit": "36d272ac90c93ef45c5b8b228a517a932a0778bd"
},
- "_source": "git://github.com/CuriousSolutions/DateTimePicker.git",
- "_target": "~0.1.26",
- "_originalSource": "curioussolutions-datetimepicker"
+ "_source": "https://github.com/nehakadam/DateTimePicker.git",
+ "_target": "^0.1.38",
+ "_originalSource": "flat-datetimepicker",
+ "_direct": true
}
\ No newline at end of file
diff --git a/public/vendor/curioussolutions-datetimepicker/DateTimePicker.jquery.json b/public/vendor/datetimepicker/DateTimePicker.jquery.json
old mode 100644
new mode 100755
similarity index 69%
rename from public/vendor/curioussolutions-datetimepicker/DateTimePicker.jquery.json
rename to public/vendor/datetimepicker/DateTimePicker.jquery.json
index 9f634586..29ee258c
--- a/public/vendor/curioussolutions-datetimepicker/DateTimePicker.jquery.json
+++ b/public/vendor/datetimepicker/DateTimePicker.jquery.json
@@ -7,9 +7,11 @@
"keywords": ["date", "time", "datetime", "plugin", "picker", "DatePicker", "TimePicker", "DateTimePicker", "Responsive", "Flat", "Mobile", "jquery"],
+ "version": "0.1.38",
+
"author": {
- "name": "Curious Solutions",
- "url": "http://curioussolutions.in/"
+ "name": "Lajpat Shah",
+ "url": "https://github.com/lajpatshah"
},
"maintainers": [
@@ -22,19 +24,17 @@
"repository":
{
"type" : "git",
- "url" : "https://github.com/CuriousSolutions/DateTimePicker.git"
+ "url" : "https://github.com/nehakadam/DateTimePicker.git"
},
- "homepage": "http://curioussolutions.github.io/DateTimePicker/",
+ "homepage": "https://nehakadam.github.io/DateTimePicker/",
- "docs": "http://curioussolutions.github.io/DateTimePicker/",
-
- "version": "0.1.26",
+ "docs": "https://nehakadam.github.io/DateTimePicker/",
"licenses": [
{
"type": "MIT",
- "url": "https://github.com/CuriousSolutions/DateTimePicker/blob/master/LICENSE"
+ "url": "https://github.com/nehakadam/DateTimePicker/blob/master/LICENSE"
}
],
@@ -43,5 +43,5 @@
"jquery": ">=1.9.1"
},
- "bugs": "https://github.com/CuriousSolutions/DateTimePicker/issues"
+ "bugs": "https://github.com/nehakadam/DateTimePicker/issues"
}
diff --git a/public/vendor/curioussolutions-datetimepicker/Gruntfile.js b/public/vendor/datetimepicker/Gruntfile.js
similarity index 88%
rename from public/vendor/curioussolutions-datetimepicker/Gruntfile.js
rename to public/vendor/datetimepicker/Gruntfile.js
index 55443d76..a6d13e57 100644
--- a/public/vendor/curioussolutions-datetimepicker/Gruntfile.js
+++ b/public/vendor/datetimepicker/Gruntfile.js
@@ -3,9 +3,10 @@ module.exports = function(grunt)
var sBanner = '/* ----------------------------------------------------------------------------- ' +
'\n\n jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile' +
'\n Version <%= pkg.version %>' +
- '\n Copyright (c)<%= grunt.template.today("yyyy") %> Curious Solutions LLP and Neha Kadam' +
- '\n http://curioussolutions.github.io/DateTimePicker' +
- '\n https://github.com/CuriousSolutions/DateTimePicker' +
+ '\n Copyright (c)<%= grunt.template.today("yyyy") %> Lajpat Shah' +
+ '\n Contributors : https://github.com/nehakadam/DateTimePicker/contributors' +
+ '\n Repository : https://github.com/nehakadam/DateTimePicker' +
+ '\n Documentation : https://nehakadam.github.io/DateTimePicker' +
'\n\n ----------------------------------------------------------------------------- */\n\n'
@@ -56,7 +57,10 @@ module.exports = function(grunt)
{
options:
{
- banner: sBanner
+ banner: sBanner,
+ compress: {
+ drop_console: true
+ }
},
build:
{
diff --git a/public/vendor/curioussolutions-datetimepicker/LICENSE b/public/vendor/datetimepicker/LICENSE
similarity index 96%
rename from public/vendor/curioussolutions-datetimepicker/LICENSE
rename to public/vendor/datetimepicker/LICENSE
index ec6fdf81..e2787d87 100644
--- a/public/vendor/curioussolutions-datetimepicker/LICENSE
+++ b/public/vendor/datetimepicker/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2015 Curious Solutions
+Copyright (c) 2017 Lajpat Shah
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
diff --git a/public/vendor/curioussolutions-datetimepicker/README.md b/public/vendor/datetimepicker/README.md
similarity index 56%
rename from public/vendor/curioussolutions-datetimepicker/README.md
rename to public/vendor/datetimepicker/README.md
index f28c2f72..a7aa7a4a 100644
--- a/public/vendor/curioussolutions-datetimepicker/README.md
+++ b/public/vendor/datetimepicker/README.md
@@ -1,16 +1,8 @@
-## NEW AnyPicker
-Check our newly released picker library for Mobile OS - [AnyPicker](https://curioussolutions.in/libraries/anypicker/ "AnyPicker
-Details")
-
-
-## DateTimePicker [](https://gitter.im/CuriousSolutions/DateTimePicker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-
-
**Responsive jQuery DateTime Picker library for Web & Mobile**
-
-
-
+
+
+
DateTime Picker is a quick highly customizable jQuery plugin. The design is clutter free & well suited for embedding it into mobile application development.
@@ -19,17 +11,16 @@ Users can change values using +/- buttons or type values directly into the textb
For web, picker can be binded relative to reference element, were it will appear at the bottom of the element. For mobile, the picker can appear as a dialog box covering entire window.
-## Browser Support
-- Chrome, Firefox, Safari, Opera, IE 9+
+##Browser Support
+- Chrome, Firefox, Safari, Opera, IE 6+
- Android 2.3+, iOS 6+, Windows Phone 8
## More Details
-For demo & api documentation visit [Plugin Page](http://curioussolutions.github.io/DateTimePicker/ "DateTime Picker Plugin
-Details")
+For demo & api documentation visit [Plugin Page](http://nehakadam.github.io/DateTimePicker/)
-## Build System
+##Build System
- Install devDependencies listed in "package.json"
@@ -45,7 +36,7 @@ Tasks configured in "Gruntfile.js"
- Minify "src/DateTimePicker.css" to "dist/DateTimePicker.min.css"
-## Installations
+##Installations
- npm
@@ -55,7 +46,7 @@ Tasks configured in "Gruntfile.js"
`bower install curioussolutions-datetimepicker`
-## CDN
+##CDN
DateTimePicker is hosted on [jsDelivr](http://www.jsdelivr.com).
Files - Latest
@@ -72,18 +63,16 @@ Files - Particular Version
```
-## Authors
-[Neha Kadam](https://github.com/nehakadam): Principle Developer
+##Authors
+[Neha Kadam](https://github.com/nehakadam): Developer
-Special thanks:
-- Shweta Matkar for her contributions
-- Jean-Christophe Hoelt - NPM packaging. Few customization options.
+Special Thanks:
+- [Jean-Christophe Hoelt](https://github.com/j3k0) - NPM packaging. Few customization options.
+- [All Contributors](https://github.com/nehakadam/DateTimePicker/contributors)
-Copyright 2015 [Curious Solutions LLP](https://github.com/CuriousSolutions)
+Copyright 2017 [Lajpat Shah](https://github.com/lajpatshah)
-
-
-## License
+##License
Licensed under the MIT License
diff --git a/public/vendor/curioussolutions-datetimepicker/bower.json b/public/vendor/datetimepicker/bower.json
similarity index 70%
rename from public/vendor/curioussolutions-datetimepicker/bower.json
rename to public/vendor/datetimepicker/bower.json
index 00bdefaf..389cae81 100644
--- a/public/vendor/curioussolutions-datetimepicker/bower.json
+++ b/public/vendor/datetimepicker/bower.json
@@ -15,11 +15,11 @@
"input"
],
- "version": "0.1.26",
+ "version": "0.1.38",
- "homepage": "http://curioussolutions.github.io/DateTimePicker/",
+ "homepage": "https://nehakadam.github.io/DateTimePicker/",
- "main": ["dist/DateTimePicker.js", "dist/DateTimePicker.css"],
+ "main": ["dist/DateTimePicker.min.js", "dist/DateTimePicker.min.css"],
"authors": [
{"name": "nehakadam"}
@@ -27,7 +27,7 @@
"repository": {
"type": "git",
- "url": "git://github.com:CuriousSolutions/DateTimePicker.git"
+ "url": "git://github.com:nehakadam/DateTimePicker.git"
},
"devDependencies": {
diff --git a/public/vendor/curioussolutions-datetimepicker/demo/AngularJS/BasicDatePicker-AngularJS.htm b/public/vendor/datetimepicker/demo/AngularJS/BasicDatePicker-AngularJS.htm
similarity index 100%
rename from public/vendor/curioussolutions-datetimepicker/demo/AngularJS/BasicDatePicker-AngularJS.htm
rename to public/vendor/datetimepicker/demo/AngularJS/BasicDatePicker-AngularJS.htm
diff --git a/public/vendor/datetimepicker/demo/AngularJS/BasicDatePicker-LongTypeOfModel.html b/public/vendor/datetimepicker/demo/AngularJS/BasicDatePicker-LongTypeOfModel.html
new file mode 100644
index 00000000..f48fdb84
--- /dev/null
+++ b/public/vendor/datetimepicker/demo/AngularJS/BasicDatePicker-LongTypeOfModel.html
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+ long type of model in AngularJS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Time :
+
+
+ Time : {{ datestring }}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/vendor/datetimepicker/demo/AngularJS/TwoPicker-AngularJS.htm b/public/vendor/datetimepicker/demo/AngularJS/TwoPicker-AngularJS.htm
new file mode 100644
index 00000000..6c3cce54
--- /dev/null
+++ b/public/vendor/datetimepicker/demo/AngularJS/TwoPicker-AngularJS.htm
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+ Date Picker with AngularJS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Question Date : {{ question.datestr }}
+
+
+
+
+
Review Date : {{ reviews.datestr }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/vendor/curioussolutions-datetimepicker/demo/AngularJS/angular-1.4.2.min.js b/public/vendor/datetimepicker/demo/AngularJS/angular-1.4.2.min.js
similarity index 100%
rename from public/vendor/curioussolutions-datetimepicker/demo/AngularJS/angular-1.4.2.min.js
rename to public/vendor/datetimepicker/demo/AngularJS/angular-1.4.2.min.js
diff --git a/public/vendor/curioussolutions-datetimepicker/demo/Basic-Zepto.htm b/public/vendor/datetimepicker/demo/Basic-Zepto.htm
similarity index 100%
rename from public/vendor/curioussolutions-datetimepicker/demo/Basic-Zepto.htm
rename to public/vendor/datetimepicker/demo/Basic-Zepto.htm
diff --git a/public/vendor/curioussolutions-datetimepicker/demo/BasicDatePicker.htm b/public/vendor/datetimepicker/demo/BasicDatePicker.htm
similarity index 77%
rename from public/vendor/curioussolutions-datetimepicker/demo/BasicDatePicker.htm
rename to public/vendor/datetimepicker/demo/BasicDatePicker.htm
index 8aa425d1..bd8f7937 100644
--- a/public/vendor/curioussolutions-datetimepicker/demo/BasicDatePicker.htm
+++ b/public/vendor/datetimepicker/demo/BasicDatePicker.htm
@@ -8,8 +8,9 @@
-
-
+
+
+
-
+
+
+
+
+
+ Date :
+
+
+
+
+
+
+
+
+