bkruse: trunk r1267 - in /trunk/config/setup: 1.html 2.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Sat Jul 28 21:32:56 CDT 2007


Author: bkruse
Date: Sat Jul 28 21:32:56 2007
New Revision: 1267

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1267
Log:
Fixing 2.html, since it should be left blank, and updating for trunk specific settings instead of the aadk. [1] Now the next button not being set will not kill the gui in direct access, (eg referencing 1.html instead of install.html) [2] Making them go to 3.html instead of 2.html, as 2 is ONLY used for the GUI

Modified:
    trunk/config/setup/1.html
    trunk/config/setup/2.html

Modified: trunk/config/setup/1.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/1.html?view=diff&rev=1267&r1=1266&r2=1267
==============================================================================
--- trunk/config/setup/1.html (original)
+++ trunk/config/setup/1.html Sat Jul 28 21:32:56 2007
@@ -35,6 +35,10 @@
 function localinit(){
 	parent.fxoports = [];
 	parent.fxsports = [];
+	if(!parent.$('next')) {
+		alert("You cannot access the pages directly, use install.html instead.");
+		return false;
+	}
 	parent.$('next').disabled = true;
 	parent.$('back').disabled = true;
 	rawman_url = parent.rawman_url ;
@@ -182,7 +186,7 @@
 	_$('loginform').style.display = "none";
 	_$('zapinfo').style.display = "";
 	parent.$('next').disabled = false;
-	parent.$('next').onclick = function(){  window.location.href="2.html"; };
+	parent.$('next').onclick = function(){  window.location.href="3.html"; };
 	_$('menu').style.display = "";
 }
 

Modified: trunk/config/setup/2.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/2.html?view=diff&rev=1267&r1=1266&r2=1267
==============================================================================
--- trunk/config/setup/2.html (original)
+++ trunk/config/setup/2.html Sat Jul 28 21:32:56 2007
@@ -20,6 +20,10 @@
  *
  *
  * // Page intentionally left blank
- * // 2.html in aadk is used for setting up date and time on the appliance
+ * // 2.html in aadk is used for setting up date and time on the appliance, but not anywhere else
  *  
  -->
+<script>
+alert("2.html not used!\nUse 3.html, if you got to this point by click 'next', please update the gui.\nRedirecting you to install.html");
+parent.window.location.href = "install.html";
+</script>




More information about the asterisk-gui-commits mailing list