X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fjs%2Fmod_group.js;h=bc513aca9ea00842c97ec5883b42d83d79c98e47;hb=cf9a65cded8e8f270aedbb3ba46d5fe2fe351b4c;hp=17ed9ce4615ff742b20592f568b1de1193954ee3;hpb=f99bb958f61f17e81452f3f9c4d3472c3de8b37b;p=friendica.git diff --git a/view/theme/frio/js/mod_group.js b/view/theme/frio/js/mod_group.js index 17ed9ce461..bc513aca9e 100644 --- a/view/theme/frio/js/mod_group.js +++ b/view/theme/frio/js/mod_group.js @@ -5,9 +5,9 @@ */ -$(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); }); }); @@ -15,16 +15,18 @@ $(document).ready(function(){ /** * @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); @@ -40,7 +42,7 @@ function groupChangeMember(gid, cid, sec_token) { /** * @brief Change the group list view mode - * + * * @param {object} elm The button element of the view mode switcher * @returns {undefined} */ @@ -51,7 +53,7 @@ function switchGroupViewMode(elm) { $(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"); @@ -60,7 +62,7 @@ function switchGroupViewMode(elm) { /** * @brief Filter the group member list for contacts - * + * * @returns {undefined} */ function filterList() {