pari: trunk r768 - /trunk/config/backup.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu Apr 26 10:13:35 MST 2007


Author: pari
Date: Thu Apr 26 12:13:34 2007
New Revision: 768

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=768
Log:
adding some changes that were recently done in aadk/backup.html

Modified:
    trunk/config/backup.html

Modified: trunk/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/backup.html?view=diff&rev=768&r1=767&r2=768
==============================================================================
--- trunk/config/backup.html (original)
+++ trunk/config/backup.html Thu Apr 26 12:13:34 2007
@@ -116,7 +116,8 @@
 
 
 function restore_bkp(filename){
-	parent.astmanEngine.run_tool("rm /etc/asterick/* -rf ", callback=function(){ restore_bkp_step2(filename);} );
+	//parent.astmanEngine.run_tool("rm /etc/asterisk/* -rf ", callback=function(){ restore_bkp_step2(filename);} );
+	restore_bkp_step2(filename);
 }
 
 
@@ -159,6 +160,13 @@
 		_nn.focus();
 		return true;
 	}
+
+	if (_nn.value.search('^[a-zA-Z_0-9]*$') == -1){
+		alert("spaces and special characters are not allowed in the filename.");
+		_nn.focus();
+		return true;
+	}
+
 	var months = ["jan", "feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];
 	var today=new Date()
 	var year = today.getFullYear();
@@ -235,4 +243,4 @@
 <div id="sysinfohtml" style="display:none"></div>
 <div id="bg_transparent" STYLE="display:none; position: absolute; left: 0; top: 24; width:100%; height:100%;  background-color:#EFEFEF; -moz-opacity:.50;opacity:.50; border-width: 1px; border-color: #EFEFEF; border-style: solid; z-index:4">
 </div>
-</body>
+</body>



More information about the asterisk-gui-commits mailing list