function reload_Date_List(){
        let p=0;
        let strTemp;
        
        $('#select_date_of_current_tasks').html('');

        dateTasks.sort(function (a, b) {
            return new Date(a)-new Date(b);
        });  

        let newDateTasks = [];
        $.each(dateTasks, function(i, el){
            if($.inArray(el, newDateTasks) === -1) newDateTasks.push(el);
        });
        
        dateTasks=newDateTasks;

        for( p=0 ; p<dateTasks.length ; p++){   
            strTemp=(p===0) ? " selected " : ""; 
            $("#select_date_of_current_tasks").append("<option "+ strTemp + ">"+ dateTasks[p] + "</option>"); 
        }

        if(dateTasks.length>0)
            document.getElementById("choose_date_of_tasks_to_dupllicate").disabled = false;
        else
            document.getElementById("choose_date_of_tasks_to_dupllicate").disabled = true;
    }
//Function that reload the memberList Users to the Selector

Function that reload the memberList Users to the Selector
Function that reload the memberList Users to the Selector
function reload_Date_List(){
        let p=0;
        let strTemp;
        $('#select_date_of_current_tasks').html('');
        dateTasks.sort(function (a, b) {
            return new Date(a)-new Date(b);
        });  
        let newDateTasks = [];
        $.each(dateTasks, function(i, el){
            if($.inArray(el, newDateTasks) === -1) newDateTasks.push(el);
        });
        dateTasks=newDateTasks;
        for( p=0 ; p<dateTasks.length ; p++){   
            strTemp=(p===0) ? " selected " : ""; 
            $("#select_date_of_current_tasks").append("<option "+ strTemp + ">"+ dateTasks[p] + "</option>"); 
        }
        if(dateTasks.length>0)
            document.getElementById("choose_date_of_tasks_to_dupllicate").disabled = false;
        else
            document.getElementById("choose_date_of_tasks_to_dupllicate").disabled = true;
    }
function reload_Date_List ( ) { let p = 0 ; let strTemp ; $ ( '#select_date_of_current_tasks' ) . html ( '' ) ; dateTasks . sort ( function ( a , b ) { return new Date ( a ) - new Date ( b ) ; } ) ; let newDateTasks = [ ] ; $ . each ( dateTasks , function ( i , el ) { if ( $ . inArray ( el , newDateTasks ) === - 1 ) newDateTasks . push ( el ) ; } ) ; dateTasks = newDateTasks ; for ( p = 0 ; p < dateTasks . length ; p ++ ) { strTemp = ( p === 0 ) ? " selected " : "" ; $ ( "#select_date_of_current_tasks" ) . append ( "<option " + strTemp + ">" + dateTasks [ p ] + "</option>" ) ; } if ( dateTasks . length > 0 ) document . getElementById ( "choose_date_of_tasks_to_dupllicate" ) . disabled = false ; else document . getElementById ( "choose_date_of_tasks_to_dupllicate" ) . disabled = true ; }
Function that reload the memberList Users to the Selector
Function that reload the memberList Users to the Selector