Subversion Repositories SmartDukaan

Rev

Rev 33141 | Rev 33220 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33141 Rev 33167
Line 1095... Line 1095...
1095
function jsonEndDate(dateInputString) {
1095
function jsonEndDate(dateInputString) {
1096
    if(dateInputString === '') return null;
1096
    if(dateInputString === '') return null;
1097
    return moment(dateInputString, "yyyy-MM-DD").endOf('day').format(moment.HTML5_FMT.DATETIME_LOCAL_SECONDS);
1097
    return moment(dateInputString, "yyyy-MM-DD").endOf('day').format(moment.HTML5_FMT.DATETIME_LOCAL_SECONDS);
1098
}
1098
}
1099
 
1099
 
-
 
1100
function showToast(message) {
-
 
1101
    Toastify({
-
 
1102
        text: message,
-
 
1103
        duration: 3000, // 3 seconds
-
 
1104
        gravity: "top", // or "bottom"
-
 
1105
        position: "right", // "left", "center", "right"
-
 
1106
        backgroundColor: "green", // specify the background color
-
 
1107
    }).showToast();
-
 
1108
}
-
 
1109
 
1100
 
1110
 
1101
 
1111
 
1102
 
1112
 
1103
 
1113