ste/ste_script.js
/**
 * Function to make AJAX call for system to autocategorize targets based on OS
 */
Function to make AJAX call for system to autocategorize targets based on OS
Function to make AJAX call for system to autocategorize targets based on OS
function auto_cat() {
  $.ajax('/ajax.php', {
    data: {
      ste: $('#ste').val(),
      action: 'auto-categorize'
    },
    beforeSend: function () {
      $('#loading,#waiting').show();
      $('#waiting').animate({'opacity': '0.5'}, 300, 'linear');
    },
    success: function (data) {
      location.reload();
    },
    error: function (xhr, status, error) {
      console.error(error);
    },
    complete: function () {
      $('#loading,#waiting').hide();
      $('#waiting').animate({'opacity': '0'}, 300, 'linear');
    },
    dataType: 'json',
    timeout: 5000,
    method: 'post'
  });
}
function auto_cat ( ) { $ . ajax ( '/ajax.php' , { data : { ste : $ ( '#ste' ) . val ( ) , action : 'auto-categorize' } , beforeSend : function ( ) { $ ( '#loading,#waiting' ) . show ( ) ; $ ( '#waiting' ) . animate ( { 'opacity' : '0.5' } , 300 , 'linear' ) ; } , success : function ( data ) { location . reload ( ) ; } , error : function ( xhr , status , error ) { console . error ( error ) ; } , complete : function ( ) { $ ( '#loading,#waiting' ) . hide ( ) ; $ ( '#waiting' ) . animate ( { 'opacity' : '0' } , 300 , 'linear' ) ; } , dataType : 'json' , timeout : 5000 , method : 'post' } ) ; }
Function to make AJAX call for system to autocategorize targets based on OS
Function to make AJAX call for system to autocategorize targets based on OS