src/main/ChatController.js
/**
 * Selects a contact as a member of a new group
 */
Selects a contact as a member of a new group
Selects a contact as a member of a new group
async function markContactForGroup() {
    var intWebId = this.getAttribute("id").replace("openchatwindow", "");
    var index = contactsForGroup.indexOf(intWebId);
    if (index == -1) {
        $("#ctmsg" + intWebId.split("/")[2].split(".")[0]).html("Selected");
        contactsForGroup.push(intWebId);
    } else {
        $("#ctmsg" + intWebId.split("/")[2].split(".")[0]).html("");
        contactsForGroup.splice(index, 1);
    }
}
async function markContactForGroup ( ) { var intWebId = this . getAttribute ( "id" ) . replace ( "openchatwindow" , "" ) ; var index = contactsForGroup . indexOf ( intWebId ) ; if ( index == - 1 ) { $ ( "#ctmsg" + intWebId . split ( "/" ) [ 2 ] . split ( "." ) [ 0 ] ) . html ( "Selected" ) ; contactsForGroup . push ( intWebId ) ; } else { $ ( "#ctmsg" + intWebId . split ( "/" ) [ 2 ] . split ( "." ) [ 0 ] ) . html ( "" ) ; contactsForGroup . splice ( index , 1 ) ; } }
Selects a contact as a member of a new group
Selects a contact as a member of a new group