pari: trunk r462 - /trunk/config/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Mar 21 16:35:54 MST 2007


Author: pari
Date: Wed Mar 21 18:35:53 2007
New Revision: 462

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=462
Log:
Got rid of cfgadvanced.html - using cfgbasic.html for switching between basic and advanced modes

Removed:
    trunk/config/cfgadvanced.html
Modified:
    trunk/config/cfgbasic.html
    trunk/config/localexts.html
    trunk/config/options.html

Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=462&r1=461&r2=462
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Wed Mar 21 18:35:53 2007
@@ -87,18 +87,6 @@
 
 	new PanelDef("record", "Record a Menu", "accordion-icon.gif",
 		"Allows you to record custom voicemenus over a phone"),
-
-//	new PanelDef("moh", "Music On Hold", "accordion-icon.gif", " Music on hold sometimes keeps people less angry while they wait for an answer"),
-
-//	new PanelDef("sip", "SIP", "accordion-icon.gif", "SIP (Session Initiation Protocol) Configuration"),
-
-//	new PanelDef("iax", "IAX", "accordion-icon.gif", "IAX (Inter-Asterisk eXchange Protocol) Configuration"),
-
-//	new PanelDef("jabber", "Jabber", "accordion-icon.gif", "Jabber users configuration"),
-
-//	new PanelDef("jingle", "Jingle", "accordion-icon.gif", "Jingle configuration lets users connect to google talk networks"),
-
-//	new PanelDef("zapata", "Zap Channel", "accordion-icon.gif", "Zapata telephony interface configuration"),
 	
 	new PanelDef("status", "Active Channels", "accordion-icon.gif", "Monitor active channels."),
 
@@ -109,6 +97,24 @@
 	new PanelDef("localexts", "Options", "accordion-icon.gif", "Admin Settings")
 
 );
+
+// show additional panels for advanced mode
+if(window.location.href.match("advanced=yes") ){
+panels.splice(10,0,
+	new PanelDef("moh", "Music On Hold", "accordion-icon.gif", " Music on hold sometimes keeps people less angry while they wait for an answer"),
+
+	new PanelDef("sip", "SIP", "accordion-icon.gif", "SIP (Session Initiation Protocol) Configuration"),
+
+	new PanelDef("iax", "IAX", "accordion-icon.gif", "IAX (Inter-Asterisk eXchange Protocol) Configuration"),
+
+	new PanelDef("jabber", "Jabber", "accordion-icon.gif", "Jabber users configuration"),
+
+	new PanelDef("jingle", "Jingle", "accordion-icon.gif", "Jingle configuration lets users connect to google talk networks"),
+
+	new PanelDef("zapata", "Zap Channel", "accordion-icon.gif", "Zapata telephony interface configuration")
+	);
+}
+
 
 function setLoggedOn(onoff) {
 	loggedon = onoff;

Modified: trunk/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/localexts.html?view=diff&rev=462&r1=461&r2=462
==============================================================================
--- trunk/config/localexts.html (original)
+++ trunk/config/localexts.html Wed Mar 21 18:35:53 2007
@@ -117,6 +117,13 @@
 		purge( document.body );
 	} catch(e){ }
 }
+
+function basicadvanced(){
+	var _url = "";
+	if(top.window.location.href.match("advanced=yes") ){ _url = "./cfgbasic.html"; }else{ _url = "./cfgbasic.html?advanced=yes" }
+	parent.window.location.href = _url ;
+}
+
 </script>
 <body id="foo" onload="localajaxinit()" bgcolor="EFEFEF"  onunload="free_mem()">
 <div class="mainscreenTitleBar"><span style="margin-left: 4px;font-weight:bold">Admin Options - Local Extension Settings</span></div>
@@ -125,6 +132,13 @@
 <TR>
 	<TD valign="bottom" align="center" class="tab"><a href="#" class="tabselected">Local Extension settings</a></TD>
 	<TD><a href="options.html" class="tab">Change Password</a></TD>
+	<TD valign="bottom" align="left">
+		<a href="#" class="tab" onclick="basicadvanced();">
+		<script>
+			if( top.window.location.href.match("advanced=yes") ){ document.write("Basic"); }else{ document.write("Avanced"); }
+		</script>
+		</a>
+	</TD>
 	<TD valign="bottom" align="left"><a href="#" class="tab" onclick="tosetup();">Run Setup Wizard</a></TD> 
 </TR>
 </TABLE>

Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?view=diff&rev=462&r1=461&r2=462
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Wed Mar 21 18:35:53 2007
@@ -227,6 +227,14 @@
 	parent.astmanEngine.config2list("http.conf", _$('hiddenfield'), widgets, httpconf_callbacks);
 	return;
 }
+
+
+function basicadvanced(){
+	var _url = "";
+	if(top.window.location.href.match("advanced=yes") ){ _url = "./cfgbasic.html"; }else{ _url = "./cfgbasic.html?advanced=yes" }
+	parent.window.location.href = _url ;
+}
+
 </script>
 <body id="foo" onload="localajaxinit()" bgcolor="EFEFEF">
 <div class="mainscreenTitleBar"><span style="margin-left: 4px;font-weight:bold">Admin Options</span></div>
@@ -236,6 +244,13 @@
 <TR>
 	<TD valign="bottom" align="center"><a href="localexts.html" class="tab">Local Extension settings</a></TD>
 	<TD><a href="#" class="tabselected">Change Password</a></TD>
+	<TD valign="bottom" align="left">
+		<a href="#" class="tab" onclick="basicadvanced();">
+		<script>
+			if(top.window.location.href.match("advanced=yes") ){ document.write("Basic"); }else{ document.write("Advanced"); }
+		</script>
+		</a>
+	</TD>
 	<TD valign="bottom" align="left"><a href="#" onclick="tosetup();" class="tab">Run Setup Wizard</a></TD> 
 </TR>
 </TABLE>



More information about the asterisk-gui-commits mailing list