function reload_Selector_Groups_List(){
    let p=0;
    let strTemp;   
    $('#selectorGroup').html('');

    let chosenID;

    if(fromHomPage_GID!=null)
        chosenID=fromHomPage_GID;
    else
        chosenID=globalUserID;

    for( p=0 ; p<groupsList.length ; p++){     
        strTemp=(groupsList[p].groupID==chosenID) ? " selected " : "";
        $("#selectorGroup").append("<option data-id=\""+groupsList[p].groupID+"\" "+ strTemp + ">"+ groupsList[p].groupName + "</option>");           
    } 
    fromHomPage_GID=null; // fromHomPage_GID will use once at relocation from home page and then become null

    groupId= $("#selectorGroup option:selected").data("id");
}
//Function that reload the memberGroupsList Users to the Selector

Function that reload the memberGroupsList Users to the Selector
Function that reload the memberGroupsList Users to the Selector
function reload_Selector_Groups_List(){
    let p=0;
    let strTemp;   
    $('#selectorGroup').html('');
    let chosenID;
    if(fromHomPage_GID!=null)
        chosenID=fromHomPage_GID;
    else
        chosenID=globalUserID;
    for( p=0 ; p<groupsList.length ; p++){     
        strTemp=(groupsList[p].groupID==chosenID) ? " selected " : "";
        $("#selectorGroup").append("<option data-id=\""+groupsList[p].groupID+"\" "+ strTemp + ">"+ groupsList[p].groupName + "</option>");           
    } 
    fromHomPage_GID=null; 
    groupId= $("#selectorGroup option:selected").data("id");
}
function reload_Selector_Groups_List ( ) { let p = 0 ; let strTemp ; $ ( '#selectorGroup' ) . html ( '' ) ; let chosenID ; if ( fromHomPage_GID != null ) chosenID = fromHomPage_GID ; else chosenID = globalUserID ; for ( p = 0 ; p < groupsList . length ; p ++ ) { strTemp = ( groupsList [ p ] . groupID == chosenID ) ? " selected " : "" ; $ ( "#selectorGroup" ) . append ( "<option data-id=\"" + groupsList [ p ] . groupID + "\" " + strTemp + ">" + groupsList [ p ] . groupName + "</option>" ) ; } fromHomPage_GID = null ; groupId = $ ( "#selectorGroup option:selected" ) . data ( "id" ) ; }
Function that reload the memberGroupsList Users to the Selector
Function that reload the memberGroupsList Users to the Selector
// fromHomPage_GID will use once at relocation from home page and then become null
