Changeset 23521

Show
Ignore:
Timestamp:
22.12.2010 23:06:03 (9 years ago)
Author:
davidb
Message:

Added in extra macros+html to allow the upload progress bar on the 'to' server to be viewed on the 'from' server

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/macros/talkback.dm

    r23187 r23521  
     1package Global 
     2 
     3# Currently nothing in talkbackscript 
     4_talkbackscript_ { 
     5} 
     6 
     7 
    18package talkback 
    29 
     
    1623 
    1724 
     25 
    1826_uploadForm_ { 
    1927 
     
    3139    </form> 
    3240 
     41    <div id="talktoProgressBar" style="display: block;"> 
     42      <iframe style="float: top;" width="600" height="100" frameborder="0"  
     43         src="_talktoUpload_"> 
     44      </iframe> 
     45    </div> 
     46 
     47 
    3348   <script type="text/javascript"> 
     49 
     50 
     51     function talktoProgressBarHide(oid) 
     52     \{ 
     53 
     54         var ttpb = document.getElementById("talktoProgressBar"); 
     55     ttpb.style.display = "none"; 
     56     \} 
     57 
    3458      
    3559     function talkbackUploadSubmit(oid) 
    3660     \{ 
     61         var ttpb = document.getElementById("talktoProgressBar"); 
     62     ttpb.style.display = "block"; 
     63 
     64     //if (window.addEventListener) \{ 
     65     //    window.addEventListener('beforeunload',talktoProgressBarHide,true); 
     66         //\} 
     67     //else \{ 
     68     //    window.attachEvent('onbeforeunload',talktoProgressBarHide); 
     69     //\} 
     70 
     71     //alert("away to submit"); 
     72 
    3773         var uploadForm = document.uploadForm; 
    3874         uploadForm.oid.value = oid;