MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/www/imenso.co/dev/gravity/js/script.js
$(document).ready(function(){
	//show listing start
	$(document).on('click','.pdetails',function(){
		id=1;
         $(".tab-to").removeClass("active");
         $(this).addClass("active");
        $('.loader_main').addClass('loader');
      $.ajax({
            url:'project-details.php',
            data:{id:id},
            type:'post',
            success:function(data){
            	$('.loader_main').removeClass('loader');
            	$('.mid-panel').html(data);
            },
            error:function(data){
	           $('.loader_main').removeClass('loader');
            },
            dataType:'html'
       });
	});
    $(document).on('click','.pupdate',function(){
        id=1;
         $(".tab-to").removeClass("active");
         $(this).addClass("active");
        $('.loader_main').addClass('loader');
      $.ajax({
            url:'update.php',
            data:{id:id},
            type:'post',
            success:function(data){
                $('.loader_main').removeClass('loader');
                $('.mid-panel').html(data);
            },
            error:function(data){
               $('.loader_main').removeClass('loader');
            },
            dataType:'html'
       });
    });
     $(document).on('click','.ptasks',function(){
        id=1;
         $(".tab-to").removeClass("active");
         $(this).addClass("active");
        $('.loader_main').addClass('loader');
      $.ajax({
            url:"{{ url('project/task') }}/"+id,
            //data:{id:id},
            type:'get',
            success:function(data){
                $('.loader_main').removeClass('loader');
                $('.mid-panel').html(data);
            },
            error:function(data){
               $('.loader_main').removeClass('loader');
            },
            dataType:'html'
       });
    });
     $(document).on('click','.pissues',function(){
        id=1;
         $(".tab-to").removeClass("active");
         $(this).addClass("active");
        $('.loader_main').addClass('loader');
      $.ajax({
            url:'issues.php',
            data:{id:id},
            type:'post',
            success:function(data){
                $('.loader_main').removeClass('loader');
                $('.mid-panel').html(data);
            },
            error:function(data){
               $('.loader_main').removeClass('loader');
            },
            dataType:'html'
       });
    });
//show listing end 
//add candidate start
    $(document).on('click','.addCandidate',function(){
        id=1;
        $('.loader_main').addClass('loader');
      $.ajax({
            url:'addCandidate.php',
            data:{id:id},
            type:'post',
            success:function(data){
                $('.loader_main').removeClass('loader');
                $('.right-panel').html(data);

            },
            error:function(data){
               $('.loader_main').removeClass('loader');
            },
            dataType:'html'
       });
    });
//add candidate end 

//show sub listing start
	$(document).on('click','.ps-list-item-sub',function(){
		id=1;
		$('.loader_main').addClass('loader');
      $.ajax({
            url:'listing_sub.php',
            data:{id:id},
            type:'post',
            success:function(data){
            	$('.loader_main').removeClass('loader');
            	
            	$('.right-panel-sub').html(data);
            },
            error:function(data){
	           $('.loader_main').removeClass('loader');
            },
            dataType:'html'
       });
	});
  //show sub listing end
});
$('#globle_modal').modal({
    backdrop: 'static',
    show: false
});
$('#comment_modal').modal({
    backdrop: 'static',
    show: false
});
;