pari: trunk r1211 - in /trunk/config: http_options.html scripts/tooltip.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Jul 4 05:46:25 CDT 2007


Author: pari
Date: Wed Jul  4 05:46:25 2007
New Revision: 1211

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1211
Log:
Forgot to add http_options.html in previous commit

Added:
    trunk/config/http_options.html   (with props)
Modified:
    trunk/config/scripts/tooltip.js

Added: trunk/config/http_options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/http_options.html?view=auto&rev=1211
==============================================================================
--- trunk/config/http_options.html (added)
+++ trunk/config/http_options.html Wed Jul  4 05:46:25 2007
@@ -1,0 +1,80 @@
+<!--
+ * Asterisk-GUI	-	an Asterisk configuration interface
+ *
+ * http bind interface Options
+ *
+ * Copyright (C) 2006-2007, Digium, Inc.
+ *
+ * Pari Nannapaneni <pari at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ *
+-->
+<script src="scripts/prototype.js"></script>
+<script src="scripts/astman.js"></script>
+<script src="scripts/tooltip.js"></script>
+<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
+<script>
+var http_Conf_callbacks = new Object;
+var widgets = {};
+var fieldnames = ['save','cancel','bindaddr','bindport'];
+
+http_Conf_callbacks.format = function(t) {
+	if(t.name.match('general'))
+		return t.name;
+	else
+		return false;
+}
+
+http_Conf_callbacks.postselect = function(box, val) { }
+
+http_Conf_callbacks.loaded = function() {
+	parent.loadscreen(this);
+	$('hiddenfield').selectitem(0);
+}
+
+function localajaxinit(){
+	ASTGUI.events.add(document, 'mouseover', show_tooltip);
+
+	setWindowTitle("HTTP Bind Settings");
+	for (var x =0; x< fieldnames.length; x++ ) {
+		widgets[fieldnames[x]] = $(fieldnames[x]);
+		widgets[fieldnames[x]].disabled = true;
+	}
+	parent.astmanEngine.config2list("http.conf", $('hiddenfield'), widgets, http_Conf_callbacks);
+	return;
+}
+
+</script>
+<body id="foo" onload="localajaxinit()"  bgcolor="EFEFEF">
+<div class="mainscreenTitleBar">
+	<span style="margin-left: 4px;font-weight:bold;">GUI Access Settings</span>
+	<span style="cursor: pointer; cursor: hand;" onclick="window.location.href=window.location.href;" >&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;</span>
+</div>
+<div class="mainscreenContentBox" id="userscontent">
+	<select  id="hiddenfield" style="display:none"></select>
+	<BR>
+	<table align="center" cellpadding=2 cellspacing=2 border=0>
+		<tr>	<td colspan=2 align=center height=50>	<B>GUI Access Settings</B>	</td>	</tr>
+		<tr>	<td align=right tip="en,http_options,1" height=30>Bind IP:</td>
+			<td tip="en,http_options,1">&nbsp;<input size=16 type='text' id='bindaddr' class="input8"  dfalt="0.0.0.0"></td>
+		</tr>
+		<tr>	<td align=right tip="en,http_options,2" height=30>Port:</td>
+			<td tip="en,http_options,2">&nbsp;<input size=10 type='text' id='bindport' class="input8" dfalt="80"></td>
+		</tr>
+		<tr><td colspan=2 align=center height=40 valign=bottom>
+			<input type='button' id='save' value='Save' class="buttonbold">&nbsp;
+			<input type='button' id='cancel' value='Cancel' class="buttonbold">
+			</td>
+		</tr>
+	</table>
+</div>
+</body>

Propchange: trunk/config/http_options.html
------------------------------------------------------------------------------
    svn:executable = *

Modified: trunk/config/scripts/tooltip.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/tooltip.js?view=diff&rev=1211&r1=1210&r2=1211
==============================================================================
--- trunk/config/scripts/tooltip.js (original)
+++ trunk/config/scripts/tooltip.js Wed Jul  4 05:46:25 2007
@@ -313,5 +313,5 @@
 	tooltips['http_options'].en = new Array;
 
 	tooltips['http_options'].en[0] = "" ;
-	tooltips['http_options'].en[1] = "<B>Bind IP:</B> GUI will be available only on this IP address, if not sure please enter the LAN IP address. If you want the GUI to be available on both LAN & WAN interfaces - enter 0.0.0.0" ;
-	tooltips['http_options'].en[2] = "<B>Port:</B> Please enter the port number on which you want to access the GUI. If not sure enter 80." ;
+	tooltips['http_options'].en[1] = "<B>Bind IP:</B> GUI will be available only on this IP address, if not sure please enter the LAN IP address. If you want the GUI to be available on all interfaces - enter 0.0.0.0" ;
+	tooltips['http_options'].en[2] = "<B>Port:</B> Please enter the port number on which you want to access the GUI." ;




More information about the asterisk-gui-commits mailing list