Changeset 195


Ignore:
Timestamp:
Feb 20, 2006 11:15:06 AM (18 years ago)
Author:
mmc
Message:
  • Fixed the filexfer server to handle session numbers with letters (e.g., 110L, 17D) properly.
  • Fixed the upload form to open with a smaller size, and to go away after upload when running on a Safari browser.
Location:
trunk/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/filexfer/upload.html

    r193 r195  
    77  @STYLESHEET@
    88  <script language="JavaScript">
     9  function setup() {
     10    window.resizeTo(750,800);
     11    showhide('textcntls','hidden');
     12  }
     13  window.onload = setup;
     14
    915  function showhide(name,vis) {
    1016    if (document.getElementById) {
     
    4147        File: <input type="file" name="file">
    4248      </div>
    43       <div id="textcntls" style="visibility:hidden; height:0">
     49      <div id="textcntls">
    4450        Text: <textarea rows="20" cols="80" name="text"></textarea>
    4551      </div>
  • trunk/gui/scripts/filexfer.tcl

    r193 r195  
    518518</html>
    519519} $port $user $cookie]
    520     } elseif {[regexp {^/?spool\/([0-9]+)/(.+)$} $url match session tail]} {
     520    } elseif {[regexp {^/?spool\/([^/]+)/(.+)$} $url match session tail]} {
    521521        #
    522522        # Send back a spooled file...
     
    707707  <title>Upload Complete</title>
    708708  <script language="JavaScript">
    709     setTimeout("window.close()",100);
     709    function setup() {
     710        setTimeout("window.close()",100);
     711    }
     712    window.onload = setup;
    710713  </script>
    711714</head>
  • trunk/gui/scripts/valueresult.tcl

    r193 r195  
    163163            set lstr [$itk_component(label) cget -text]
    164164            set vstr [$itk_component(value) cget -text]
    165             return [list .txt "$lstr: $vstr"]
     165            return [list .txt "$lstr $vstr"]
    166166        }
    167167        default {
Note: See TracChangeset for help on using the changeset viewer.