js/company.js
// Change User-count of companies now..
Change User-count of companies now
Change User - count of companies now
function onUserCount() {
    var compId = $('input[name=input_comp_id]').val();
    var userCount = $('select[name=company_user_count]').val();
    $.ajax({
        type: "POST",
        url: "company/userCount",
        data: {'compId': compId, 'userCount': userCount, '_token': $('input[name=_token]').val()},
        dataType: "json",
        success: function (response) {
            $('#modal-edit-user-count').modal('hide');
            $('#status-msg').css('display', 'block');
            $('#status-msg').attr('style', response.style);
            $('#status-msg').html(response.count_msg);
            $('#data_comp_tbl').load(' #data_comp_tbl');
        },
        error: function (error) {
            console.log(error);
         }
    });
}
function onUserCount ( ) { var compId = $ ( 'input[name=input_comp_id]' ) . val ( ) ; var userCount = $ ( 'select[name=company_user_count]' ) . val ( ) ; $ . ajax ( { type : "POST" , url : "company/userCount" , data : { 'compId' : compId , 'userCount' : userCount , '_token' : $ ( 'input[name=_token]' ) . val ( ) } , dataType : "json" , success : function ( response ) { $ ( '#modal-edit-user-count' ) . modal ( 'hide' ) ; $ ( '#status-msg' ) . css ( 'display' , 'block' ) ; $ ( '#status-msg' ) . attr ( 'style' , response . style ) ; $ ( '#status-msg' ) . html ( response . count_msg ) ; $ ( '#data_comp_tbl' ) . load ( ' #data_comp_tbl' ) ; } , error : function ( error ) { console . log ( error ) ; } } ) ; }
Change User-count of companies now..
Change User - count of companies now ..