rbrindley: branch 2.0 r4941 - /branches/2.0/config/upload2.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Jun 23 13:12:41 CDT 2009


Author: rbrindley
Date: Tue Jun 23 13:12:38 2009
New Revision: 4941

URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4941
Log:

- Added the following to the Upload page
	- <html>, <head>, <title>, and "Content-Type" <meta>
- moved js to the bottom


Modified:
    branches/2.0/config/upload2.html

Modified: branches/2.0/config/upload2.html
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/upload2.html?view=diff&rev=4941&r1=4940&r2=4941
==============================================================================
--- branches/2.0/config/upload2.html (original)
+++ branches/2.0/config/upload2.html Tue Jun 23 13:12:38 2009
@@ -6,45 +6,53 @@
  * All Rights Reserved.
  *
 -->
-<script>
-var starteduploading = 0 ;
+<html>
+<head>
+	<title>uImage upload</title>
+	<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
+</head>
+<body onunload="hidetheupload()">
+	<div align=center>
+	<FORM method="POST" action="/uploads" enctype="multipart/form-data" id="form22">
+		<BR>
+		<nobr>
+		<font style="font-family:'trebuchet ms',helvetica,sans-serif;">Choose a uImage file:</font> <input name="uImage" type="file" id="uf1">
+		</nobr>
+		<BR><BR>
+		<div align=center><input type="button" value="Upload Image" onclick="beforeupload();"></div>
+	</FORM>
+	</div>
 
-function beforeupload(){
-	
-	var fullpath = document.getElementById("uf1").value ;
-	if(!fullpath){
-		parent.gui_alert("Please select a uImage file to upload");
-		return;
+	<script>
+	var starteduploading = 0 ;
+
+	function beforeupload(){
+		
+		var fullpath = document.getElementById("uf1").value ;
+		if(!fullpath){
+			parent.gui_alert("Please select a uImage file to upload");
+			return;
+		}
+		var a = fullpath.lastIndexOf("\\");
+		if (a == -1){
+			a = fullpath.lastIndexOf("/");
+		}
+		parent.uImage_filename = fullpath.substr(a+1);
+		top.ASTGUI.dialog.waitWhile('Uploading firmware.....');
+		top.ASTGUI.feedback({ msg:'File Upload in progress, please wait', showfor: 300 });
+		starteduploading = 1;
+		document.getElementById('form22').submit();
 	}
-	var a = fullpath.lastIndexOf("\\");
-	if (a == -1){
-		a = fullpath.lastIndexOf("/");
-	}
-	parent.uImage_filename = fullpath.substr(a+1);
-	top.ASTGUI.dialog.waitWhile('Uploading firmware.....');
-	top.ASTGUI.feedback({ msg:'File Upload in progress, please wait', showfor: 300 });
-	starteduploading = 1;
-        document.getElementById('form22').submit();
-}
 
 
-function hidetheupload(){
-	if(!starteduploading){ return; }
-        parent._$('uploadiframe').style.display="none";
-	top.ASTGUI.dialog.hide();
-	top.ASTGUI.feedback({ msg:'File Uploaded.  Please reboot your system.  Reboot may take 5+ minutes', showfor: 300 });
-	parent.execute_applyuimage("file");
-}
+	function hidetheupload(){
+		if(!starteduploading){ return; }
+		parent._$('uploadiframe').style.display="none";
+		top.ASTGUI.dialog.hide();
+		top.ASTGUI.feedback({ msg:'File Uploaded.  Please reboot your system.  Reboot may take 5+ minutes', showfor: 300 });
+		parent.execute_applyuimage("file");
+	}
 
-</script>
-<body onunload="hidetheupload()">
-<div align=center>
-<FORM method="POST" action="/uploads" enctype="multipart/form-data" id="form22">
-	<BR>
-	<nobr>
-        <font style="font-family:'trebuchet ms',helvetica,sans-serif;">Choose a uImage file:</font> <input name="uImage" type="file" id="uf1">
-	</nobr>
-	<BR><BR>
-        <div align=center><input type="button" value="Upload Image" onclick="beforeupload();"></div>
-</FORM>
-</div>
+	</script>
+</body>
+</html>




More information about the asterisk-gui-commits mailing list