Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.fn.download = function() {
  2.     function popupClosing() {
  3.       $('#download-container').html('<b>TRANSMITTALS DOWNLOADED!</b>');
  4.         setTimeout(function(){
  5.             window.parent.location.href = window.parent.location.href;
  6.         }, 1500);
  7.     }
  8.     $('#download-transmittal-btn').on('click', function(e) {       
  9.         $('#download-container').html('<img width="200" src="../images/ajax-loader_blue.gif"></br>Generating Transmittals...');
  10.         setTimeout(function(){
  11.             var w = window.open("../scripts/php/check_transmittal.php", "MsgWindow", "width=500,height=200");
  12.             w.onunload = function(){
  13.                 popupClosing()
  14.             };
  15.         }, 1500);
  16.  
  17.        
  18.     });
  19. } // End of $.fn.download = function()
  20.  
  21.  
  22.  
  23.  $.fn.reuse_box = function() {
  24.     function popupClosing() {
  25.       $('#box-reply-container').html('<b>BOX SELECTED</b>');
  26.         setTimeout(function(){
  27.             window.parent.location.href = window.parent.location.href;
  28.         }, 1500);
  29.     }
  30.     $('#reuse-box-btn').on('click', function(e) {      
  31.         e.preventDefault();
  32.         $('#box-reply-container').html('<img width="200" src="../images/ajax-loader_blue.gif"></br>Generating box list...');
  33.         setTimeout(function(){
  34.             var w = window.open("../scripts/php/claims_boxing_reuse.php", "MsgWindow", "width=450,height=500");    
  35.             w.onunload = function(){
  36.                 popupClosing()
  37.             };
  38.         }, 1500);
  39.     });
  40. } // End of $.fn.reuse_box = function()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement