rbrindley: branch 2.0 r4898 - /branches/2.0/config/flipadvanced.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Jun 23 09:28:58 CDT 2009


Author: rbrindley
Date: Tue Jun 23 09:28:55 2009
New Revision: 4898

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

- Added the following to the Flip Advanced page
	- HTML 4.01 DOCTYPE
	- <html>, <head>, <title>, and "Content-Type" <meta>
- moved js to the bottom


Modified:
    branches/2.0/config/flipadvanced.html

Modified: branches/2.0/config/flipadvanced.html
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/flipadvanced.html?view=diff&rev=4898&r1=4897&r2=4898
==============================================================================
--- branches/2.0/config/flipadvanced.html (original)
+++ branches/2.0/config/flipadvanced.html Tue Jun 23 09:28:55 2009
@@ -1,3 +1,4 @@
+<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <!--
  * Asterisk-GUI	- an Asterisk configuration interface
  *
@@ -18,76 +19,14 @@
  * at the top of the source tree.
  *
 -->
-<script src="js/jquery.js"></script>
-<script src="js/astman.js"></script>
-<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
-<style type="text/css">
+<html>
+<head>
+	<title>Show/Hide Advanced Options</title>
+	<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
 
-
-
-</style>
-<script>
-// parent.miscFunctions.flip_advancedmode
-
-var localajaxinit = function(){
-	top.document.title = "Show/Hide Advanced options" ;
-	var t = [
-		{ url:'preferences.html', desc:'General Preferences' },
-		{ url:'language.html', desc:'Language' },
-		{ url:'password.html', desc:'Change Password' }
-	];
-	if( parent.sessionData.PLATFORM.isAA50 ){
-		t.push({ url:'reset_defaults.html', desc: 'Factory Reset' });
-	}
-	t.push({ url:'reboot.html', desc:'Reboot' });
-	t.push({ url:'#', desc:'Advanced Options', selected: true });
-
-	ASTGUI.tabbedOptions( _$('tabbedMenu') , t );
-	update_status();
-
-	ASTGUI.events.add( _$('ADVOPTIONS_HEADING') , 'dblclick' , function(){
-		if( parent.sessionData.DEBUG_MODE ){
-			parent.sessionData.DEBUG_MODE = false;
-			parent.miscFunctions.DEBUG_CLEAR();
-			parent.$(".debugWindow").hide();
-		}else{
-			parent.sessionData.DEBUG_MODE = true;
-			parent.miscFunctions.DEBUG_START();
-			parent.$(".debugWindow").show();
-		}
-	});
-};
-
-
-var update_status = function(){
-
-	var am = top.cookies.get('advancedmode');
-	if( am && am == 'yes' ){
-		_$('flip_button').innerHTML = 'Hide Advanced Options';
-		_$('flip_decsription').innerHTML = "Clicking the 'Hide Advanced Options' button below removes the advanced menu items on the left hand sidebar"
-		+ "<BR><BR><B>Notice!</B>  Digium does not provide support for the options configurable in the Advanced menu items. "
-		+ "Digium does not provide support for bugs uncovered in the Advanced menu items.  If your unit becomes inoperable "
-		+ "due to editing of the Advanced menu items, Digium Technical Support will request that you reset your unit to"
-		+ "Factory Default configuration.  Continue at your own risk." ;
-	}else{
-		_$('flip_button').innerHTML = 'Show Advanced Options';
-		_$('flip_decsription').innerHTML = "Clicking the 'Show Advanced Options' button below provides the additional menu items on the left hand sidebar"
-		+ "<BR><BR><B>Notice!</B>  Digium does not provide support for the options configurable in the Advanced menu items. "
-		+ "Digium does not provide support for bugs uncovered in the Advanced menu items.  If your unit becomes inoperable "
-		+ "due to editing of the Advanced menu items, Digium Technical Support will request that you reset your unit to"
-		+ "Factory Default configuration.  Continue at your own risk." ;
-	}
-
-};
-
-
-var flip_advOptions = function(){
-	parent.miscFunctions.flip_advancedmode();
-	update_status();
-};
-
-
-</script>
+	<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
+	<style type="text/css"></style>
+</head>
 <body bgcolor="EFEFEF">
 	<div class="iframeTitleBar">
 		Advanced Options <span class='refresh_icon' onclick="window.location.reload();" >&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;</span>
@@ -105,4 +44,69 @@
 		<span class='guiButton' id='flip_button' onclick='flip_advOptions();'></span>
 	</div>
 
+	<script src="js/jquery.js"></script>
+	<script src="js/astman.js"></script>
+	<script>
+	// parent.miscFunctions.flip_advancedmode
+
+	var localajaxinit = function(){
+		top.document.title = "Show/Hide Advanced options" ;
+		var t = [
+			{ url:'preferences.html', desc:'General Preferences' },
+			{ url:'language.html', desc:'Language' },
+			{ url:'password.html', desc:'Change Password' }
+		];
+		if( parent.sessionData.PLATFORM.isAA50 ){
+			t.push({ url:'reset_defaults.html', desc: 'Factory Reset' });
+		}
+		t.push({ url:'reboot.html', desc:'Reboot' });
+		t.push({ url:'#', desc:'Advanced Options', selected: true });
+
+		ASTGUI.tabbedOptions( _$('tabbedMenu') , t );
+		update_status();
+
+		ASTGUI.events.add( _$('ADVOPTIONS_HEADING') , 'dblclick' , function(){
+			if( parent.sessionData.DEBUG_MODE ){
+				parent.sessionData.DEBUG_MODE = false;
+				parent.miscFunctions.DEBUG_CLEAR();
+				parent.$(".debugWindow").hide();
+			}else{
+				parent.sessionData.DEBUG_MODE = true;
+				parent.miscFunctions.DEBUG_START();
+				parent.$(".debugWindow").show();
+			}
+		});
+	};
+
+
+	var update_status = function(){
+
+		var am = top.cookies.get('advancedmode');
+		if( am && am == 'yes' ){
+			_$('flip_button').innerHTML = 'Hide Advanced Options';
+			_$('flip_decsription').innerHTML = "Clicking the 'Hide Advanced Options' button below removes the advanced menu items on the left hand sidebar"
+			+ "<BR><BR><B>Notice!</B>  Digium does not provide support for the options configurable in the Advanced menu items. "
+			+ "Digium does not provide support for bugs uncovered in the Advanced menu items.  If your unit becomes inoperable "
+			+ "due to editing of the Advanced menu items, Digium Technical Support will request that you reset your unit to"
+			+ "Factory Default configuration.  Continue at your own risk." ;
+		}else{
+			_$('flip_button').innerHTML = 'Show Advanced Options';
+			_$('flip_decsription').innerHTML = "Clicking the 'Show Advanced Options' button below provides the additional menu items on the left hand sidebar"
+			+ "<BR><BR><B>Notice!</B>  Digium does not provide support for the options configurable in the Advanced menu items. "
+			+ "Digium does not provide support for bugs uncovered in the Advanced menu items.  If your unit becomes inoperable "
+			+ "due to editing of the Advanced menu items, Digium Technical Support will request that you reset your unit to"
+			+ "Factory Default configuration.  Continue at your own risk." ;
+		}
+
+	};
+
+
+	var flip_advOptions = function(){
+		parent.miscFunctions.flip_advancedmode();
+		update_status();
+	};
+
+
+	</script>
 </body>
+</html>




More information about the asterisk-gui-commits mailing list