;(function($,_,undefined){"use strict";ips.controller.mixin('file.moderate','core.global.core.table',false,function(){this.after('_updateSort',function(){var current=this._getSortValue();var formAction=ips.utils.url.removeParams(['sortby','sortdirection','listResort'],this.scope.find('[data-role="moderationTools"]').attr('action'));this.scope.find('[data-role="moderationTools"]').attr('action',formAction+'&listResort=1&sortby='+current.by+'&sortdirection='+current.order);});});}(jQuery,_));;
;(function($,_,undefined){"use strict";ips.controller.mixin('group.counts','core.global.core.table',true,function(){this.after('setup',function(){this.getGroupCounts();$(document).on('tableRowsUpdated',_.bind(this.getGroupCounts,this));});this.getGroupCounts=function(){this.scope.find('[data-ipsGroupCount].ipsLoading').each(function(){var element=$(this);var groupId=element.attr('data-ipsGroupId');ips.getAjax()('?app=core&module=members&controller=groups&do=getCount&group='+groupId).done(function(response){element.removeClass('ipsLoading').removeClass('ipsLoading_tiny').html(response);$(document).trigger('contentChange',[element]);});});}});}(jQuery,_));;