[LON-CAPA-cvs] cvs: loncom /publisher publisher.html

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 20 Mar 2002 22:28:33 -0000


albertel		Wed Mar 20 17:28:33 2002 EDT

  Modified files:              
    /loncom/publisher	publisher.html 
  Log:
  - this way enter works as expected
  
  
Index: loncom/publisher/publisher.html
diff -u loncom/publisher/publisher.html:1.17 loncom/publisher/publisher.html:1.18
--- loncom/publisher/publisher.html:1.17	Thu Jul 26 08:53:48 2001
+++ loncom/publisher/publisher.html	Wed Mar 20 17:28:33 2002
@@ -73,49 +73,57 @@
 <body bgcolor="#99ff99">
 <table border=0><tr><th bgcolor="#aaaaaa" height=20>
 <table border=0><tr valign="middle">
-<form name="publisher" action="/adm/publish" target="_parent" method="post"><td bgcolor="#ccffcc">
+<form name="publisher" action="/adm/publish" target="_parent" method="post" onSubmit="getfilename();">
+<td bgcolor="#ccffcc">
 <input type="hidden" name="filename" value="">
-<input type="button" value="Publish this Resource" onClick="getfilename();">
+<input type="button" value="Publish this Resource">
 </td></form>
 <form name="dpublisher" action="/adm/pubdir" target="LONCAPAToBePublished" 
-method="post"><td bgcolor="#ccffcc">
+method="post"  onSubmit="getdfilename();">
+<td bgcolor="#ccffcc">
 <input type="hidden" name="filename" value="">
-<input type="button" value="List Directory" onClick="getdfilename();">
+<input type="button" value="List Directory">
 </td></form>
-<form name="cp" action="/adm/cfile" target="_parent" method="post"><td bgcolor="#ccffcc">
+<form name="cp" action="/adm/cfile" target="_parent" method="post" onSubmit="getcpfilename();">
+<td bgcolor="#ccffcc">
 <input type="hidden" name="filename" value="">
 <input type="hidden" name="action" value="copy">
 <input type="text" size=10 name="newfilename" value="">
-<input type="button" value="Copy" onClick="getcpfilename();">
+<input type="button" value="Copy">
 </td></form>
 <form name="upublisher" action="/adm/upload" target="_parent" 
-method="post" enctype="multipart/form-data"><td bgcolor="#ccffcc" valign="top">
+method="post" enctype="multipart/form-data"  onSubmit="getufilename();">
+<td bgcolor="#ccffcc" valign="top">
 <input type="hidden" name="filename" value="">
 <input type="file" name="upfile" size="10">
-<input type="button" value="Upload file" onClick="getufilename();">
+<input type="button" value="Upload file">
 </td></form></tr>
 
 <tr valign="middle">
-<form name="rpublisher" action="/adm/retrieve" target="_parent" method="post"><td bgcolor="#ccffcc">
+<form name="rpublisher" action="/adm/retrieve" target="_parent" method="post" onSubmit="getrfilename();">
+<td bgcolor="#ccffcc">
 <input type="hidden" name="filename" value="">
-<input type="button" value="Retrieve Old Version" onClick="getrfilename();">
+<input type="button" value="Retrieve Old Version">
 </td></form>
-<form name="del" action="/adm/cfile" target="_parent" method="post"><td bgcolor="#ccffcc">
+<form name="del" action="/adm/cfile" target="_parent" method="post" onSubmit="getdelfilename();">
+<td bgcolor="#ccffcc">
 <input type="hidden" name="filename" value="">
 <input type="hidden" name="action" value="delete">
-<input type="button" value="Delete" onClick="getdelfilename();">
+<input type="button" value="Delete">
 </td></form>
-<form name="rename" action="/adm/cfile" target="_parent" method="post"><td bgcolor="#ccffcc">
+<form name="rename" action="/adm/cfile" target="_parent" method="post" onSubmit="getrenamefilename();">
+<td bgcolor="#ccffcc">
 <input type="hidden" name="filename" value="">
 <input type="hidden" name="action" value="rename">
 <input type="text" size=10 name="newfilename" value="">
-<input type="button" value="Rename" onClick="getrenamefilename();">
+<input type="button" value="Rename">
 </td></form>
-<form name="newdir" action="/adm/cfile" target="_parent" method="post"><td bgcolor="#ccffcc">
+<form name="newdir" action="/adm/cfile" target="_parent" method="post" onSubmit="getnewdirfilename();">
+<td bgcolor="#ccffcc">
 <input type="hidden" name="filename" value="">
 <input type="hidden" name="action" value="newdir">
 <input type="text" size=10 name="newfilename" value="">
-<input type="button" value="New Subdirectory" onClick="getnewdirfilename();">
+<input type="button" value="New Subdirectory">
 </td></form>
 </tr>
 </table>