pari: trunk r398 - in /trunk/config: menus.html scripts/tooltip.js
trunks.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Mon Mar 5 10:36:06 MST 2007
Author: pari
Date: Mon Mar 5 11:36:06 2007
New Revision: 398
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=398
Log:
Link for service providers signup/home page - add regurl field in providers.conf
Modified:
trunk/config/menus.html
trunk/config/scripts/tooltip.js
trunk/config/trunks.html
Modified: trunk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/menus.html?view=diff&rev=398&r1=397&r2=398
==============================================================================
--- trunk/config/menus.html (original)
+++ trunk/config/menus.html Mon Mar 5 11:36:06 2007
@@ -25,7 +25,6 @@
<script src="scripts/tooltip.js"></script>
<link href="stylesheets/rico.css" media="all" rel="Stylesheet" type="text/css" />
<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
-
<script>
var widgets = new Array;
var adstatus;
@@ -1331,7 +1330,12 @@
<!--
for (var k=0; k< keys.length; k++){
var p = generate_fields( keys[k] ) ;
- document.write("<TR bgcolor='#FFFFFF'>\n"
+ switch(keys[k]){
+ case 't': var omo = "onmouseover=\"show_tooltip('en', 'menus', 6 );\" " ; break;
+ case 'i': var omo = "onmouseover=\"show_tooltip('en', 'menus', 7 );\" " ; break;
+ default: var omo = "" ;
+ }
+ document.write("<TR bgcolor='#FFFFFF' " + omo + ">\n"
+ "<TD width=35 align=center><font style=\"font-size: 10pt\">"+keys[k]+"</font></TD>\n"
+ "<TD>"
+ p
Modified: trunk/config/scripts/tooltip.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/tooltip.js?view=diff&rev=398&r1=397&r2=398
==============================================================================
--- trunk/config/scripts/tooltip.js (original)
+++ trunk/config/scripts/tooltip.js Mon Mar 5 11:36:06 2007
@@ -208,6 +208,8 @@
tooltips['menus'].en[3] = "<B>Dial other Extensions:</B>Is the caller allowed to dial extensions other than the ones defined below?";
tooltips['menus'].en[4] = "<B>Keypress Events:</B>Define the actions that occur when a user presses the corresponding digit.";
tooltips['menus'].en[5] = "<B>Extension(optional):</B> If you want this Voicemenu to be accessible by dialing an extension, then enter that extension number";
+ tooltips['menus'].en[6] = "<B>t</B> On Time out";
+ tooltips['menus'].en[7] = "<B>i</B> On Invalid Input";
// Tooltips for Calling Rules (numberplan)
tooltips['callingrules']= new Object;
Modified: trunk/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/trunks.html?view=diff&rev=398&r1=397&r2=398
==============================================================================
--- trunk/config/trunks.html (original)
+++ trunk/config/trunks.html Mon Mar 5 11:36:06 2007
@@ -96,6 +96,21 @@
};
opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
+ }
+
+ providercallbacks.postselect = function() {
+ try{
+ if( $('provider').stored_config.catbyname[ $('provider').value ].fieldbyname['regurl'] ){
+ $('providerlink').href= $('provider').stored_config.catbyname[ $('provider').value ].fieldbyname['regurl'];
+ $('providerlink').target = "_blank";
+ }else{
+ $('providerlink').href= "#";
+ $('providerlink').target = "";
+ }
+ }catch(e){
+ $('providerlink').href= "#";
+ $('providerlink').target = "";
+ }
}
providercallbacks.format = function(t) {
@@ -744,7 +759,7 @@
<table align="center">
<tr onmouseover="show_tooltip('en', 'trunks', 1);"><td style='width:80px' valign='top' class="field_text">Provider:</td><td><select size='6' id='provider' style='width:200px' altonchange='selectprovider()' class="input8"></select></td></tr>
<tr><td colspan='2' align='center'><div style="height:15px" id='status'></div></td></tr>
- <tr><td colspan='2' align='center'><img id='providerlogo' style='visibility:hidden;'></td></tr>
+ <tr><td colspan='2' align='center'><A href="#" id="providerlink"><img id='providerlogo' style='visibility:hidden;' border=0></A></td></tr>
<tr><td colspan='2' align='center'><div id='providerdesc' align='left' style='width:230px;height:100px; font-size:10px'></div></td></tr>
<tr onmouseover="show_tooltip('en', 'trunks', 3);"><td class="field_text">Username:</td><td><input size='20' id='username' class="input8"></td></tr>
<tr onmouseover="show_tooltip('en', 'trunks', 4);"><td class="field_text">Password:</td><td><input type="password" size='20' id='secret' class="input8"></td></tr>
More information about the asterisk-gui-commits
mailing list