Project

General

Profile

« Previous | Next » 

Revision 4001

Added by berkley almost 16 years ago

changed message for successful upload, removed some clutter

View differences:

lib/style/skins/sms/index.jsp
77 77
                  </tr>
78 78
                </table>
79 79
              </form>
80
              <div id="uploadstatus">
80
              <div id="uploadstatus" style="width:312px">
81 81
              <%
82 82
                if(status != null && status.equals("success"))
83 83
                {
84
                  out.print("Your file was successfully uploaded.  The url to " +
85
                  "your file is <a href=\"http://linus.nceas.ucsb.edu/sms/metacat?docid=" + docid 
86
                  + "&action=read&qformat=sms\">http://linus.nceas.ucsb.edu/sms/metacat?action=read&qformat=sms&docid=" + docid +
87
                  "</a>");
84
                  out.print("Your <a href=\"http://linus.nceas.ucsb.edu/sms/metacat?docid=" + docid 
85
                  + "&action=read&qformat=sms\">file</a> was successfully uploaded.");
88 86
                }
89 87
                else
90 88
                {
lib/style/skins/sms/redirect.xsl
11 11
        }
12 12
      </script>
13 13
      <body onload="javascript:redirect()">
14
      <!--  <p>File uploaded successfully with docid <xsl:value-of select="./docid"/>.  
15
        <a href="redirect.php?docid="/>-->
16 14
      </body>
17 15
    </html>
18 16
  </xsl:template>
......
27 25
        } 
28 26
      </script>
29 27
      <body onload="javascript:redirect()">
30
      <!--  <p>File uploaded successfully with docid <xsl:value-of select="./docid"/>.  
31
        <a href="redirect.php?docid="/>-->
32 28
      </body>
33 29
    </html>
34 30
  </xsl:template>
lib/style/skins/sms/util.js
49 49
        {
50 50
          nextid = docid.substring(docid.indexOf(".") + 1, docid.lastIndexOf("."));
51 51
          nextid++;
52
          nextid = "sms." + nextid + ".1";
52
          nextid = "sms." + nextid + ".1"; 
53 53
        }
54 54
        $('#docidtextfield').val(nextid); 
55 55
      }, 

Also available in: Unified diff