*/
-$(document).ready(function(){
+$(document).ready(function() {
// Add an event listeners on buttons for switching the contact list view
- $("body").on("click", ".group-list-switcher", function(){
+ $("body").on("click", ".group-list-switcher", function() {
switchGroupViewMode(this);
});
});
/**
* @brief Change the group membership of the contacts and fetch the new grup list
* as html
- *
+ *
* @param {int} gid The group ID
* @param {int} cid The contact ID
* @param {string} sec_token The security token
- *
+ *
* @returns {undefined}
*/
function groupChangeMember(gid, cid, sec_token) {
+ $("#contact-entry-wrapper-" + cid).fadeTo("fast", 0.33);
$(".tooltip").tooltip("hide");
$("body").css("cursor", "wait");
+
$.get('group/' + gid + '/' + cid + "?t=" + sec_token, function(data) {
// Insert the new group member list
$("#group-update-wrapper").html(data);
/**
* @brief Change the group list view mode
- *
+ *
* @param {object} elm The button element of the view mode switcher
* @returns {undefined}
*/
$(elm).addClass("active");
// Add or remove the css classes for the group list with regard to the active view mode
- if (elm.id === "group-list-small") {
+ if (elm.id === "group-list-small") {
$("#contact-group-list > li").addClass("shortmode col-lg-6 col-md-6 col-sm-6 col-xs-12");
} else {
$("#contact-group-list > li").removeClass("shortmode col-lg-6 col-md-6 col-sm-6 col-xs-12");
/**
* @brief Filter the group member list for contacts
- *
+ *
* @returns {undefined}
*/
function filterList() {