var mempage = 1;
$(document).ready(function(){
$('body').on('click',"input[name='member_ids[]'],#selctall",function(){
$('#demo3').show('fast'); $('#opennotiboxbtn').hide();
var totMembersSelected = $("input[name='member_ids[]']:checked").length;
if(totMembersSelected > 0)
{
$('#selectedmemcount').removeClass('text-danger');
$('#selectedmemcount').addClass('text-success');
$('#sendnoticationpostbtn').removeProp('disabled','disabled');
}
else
{
$('#sendnoticationpostbtn').attr('disabled','disabled');
$('#selectedmemcount').removeClass('text-success');
$('#selectedmemcount').addClass('text-danger');
}
$('#selectedmemcount').html(totMembersSelected);
});
$('#closenotibox').click(function(){ $('#demo3').hide('fast'); $('#opennotiboxbtn').show(); });
$('#notify_message').keyup(function(){
$('#noticharcount').html(120 - $(this).val().length);
});
$('#member_speak_count').keyup(function(){
$('#speakcharcount').html(120 - $(this).val().length);
});
$('.btn-mrg').click(function(){ $('#selectedmemcount').html('0'); $('#selctall').removeProp('checked'); });
//$('#closesrchbox').click(function(){ $('#demo').hide('fast'); });
})
function setparams(params)
{
//$('#srcmembtn').trigger('click');
$('#member_status option[value="'+params.search.member_status+'"]').attr('selected','selected');
if(params.length > 0){
// var enParams = $.parseJSON(params);
$('#member_status').val(params.search.member_status);
// $('#member_status').val(params.dashboard_redirect);
$('.lastfilter').trigger('click');
}
}