pari: trunk r98 - in /trunk/config: ./ stylesheets/
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed Nov 1 22:16:31 MST 2006
Author: pari
Date: Wed Nov 1 23:16:31 2006
New Revision: 98
URL: http://svn.digium.com/view/asterisk-gui?rev=98&view=rev
Log:
minor updates - form validations
Modified:
trunk/config/backup.html
trunk/config/menus.html
trunk/config/options.html
trunk/config/record.html
trunk/config/stylesheets/schwing.css
trunk/config/users.html
Modified: trunk/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/backup.html?rev=98&r1=97&r2=98&view=diff
==============================================================================
--- trunk/config/backup.html (original)
+++ trunk/config/backup.html Wed Nov 1 23:16:31 2006
@@ -46,6 +46,11 @@
function backup_new(){
+ if( $('newbkp_name').value == "" ){
+ alert("Please Enter a name for the backup");
+ $('newbkp_name').focus();
+ return true;
+ }
$('status_message').style.display="block";
var opt = {
method: 'get',
Modified: trunk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/menus.html?rev=98&r1=97&r2=98&view=diff
==============================================================================
--- trunk/config/menus.html (original)
+++ trunk/config/menus.html Wed Nov 1 23:16:31 2006
@@ -202,7 +202,6 @@
}
function add_newstep(){
- $('status_message').style.display="block";
if( !$('newstep_action').value ){
alert("Please select an action for this step");
$('newstep_action').focus();
@@ -214,6 +213,8 @@
$('newstep_var').focus();
return;
}
+
+ $('status_message').style.display="block";
// prepare a request to add the new step to the voicemenu
// make a request to append
Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?rev=98&r1=97&r2=98&view=diff
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Wed Nov 1 23:16:31 2006
@@ -110,6 +110,24 @@
function update_guisettings_http(){
+
+if($('bindaddr').value==""){
+ alert("Please enter a Bind Address");
+ $('bindaddr').focus();
+ return true;
+}
+if($('bindport').value==""){
+ alert("Please enter a Port number");
+ $('bindport').focus();
+ return true;
+}
+
+if($('httptimeout').value==""){
+ alert("Please enter Http TimeOut in seconds");
+ $('httptimeout').focus();
+ return true
+}
+
$('status_message').style.display="block";
var opt = {
method: 'get',
Modified: trunk/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/record.html?rev=98&r1=97&r2=98&view=diff
==============================================================================
--- trunk/config/record.html (original)
+++ trunk/config/record.html Wed Nov 1 23:16:31 2006
@@ -144,6 +144,16 @@
}
function record_new(){
+ if($('newvmenu_name').value == "" ){
+ alert("Please Enter a name for the new Voice Menu");
+ $('newvmenu_name').focus();
+ return true;
+ }else if ( $('newvmenu_ext').value == ""){
+ alert("Please Select an extension to record the VoiceMenu");
+ $('newvmenu_ext').focus();
+ return true;
+ }
+
var filename_torecord = $('newvmenu_name').value + "." + $('format').value;
originate_recordrequest("YES", $('newvmenu_ext').value, filename_torecord);
}
Modified: trunk/config/stylesheets/schwing.css
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/stylesheets/schwing.css?rev=98&r1=97&r2=98&view=diff
==============================================================================
--- trunk/config/stylesheets/schwing.css (original)
+++ trunk/config/stylesheets/schwing.css Wed Nov 1 23:16:31 2006
@@ -113,7 +113,7 @@
/* From astman.css - for use in status tab to show active channels */
.chanlist {
border : 1px solid #1f669b;
- height : 150px;
+ height : 380px;
overflow : auto;
background-color : #f1f1f1;
width : 524;
Modified: trunk/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/users.html?rev=98&r1=97&r2=98&view=diff
==============================================================================
--- trunk/config/users.html (original)
+++ trunk/config/users.html Wed Nov 1 23:16:31 2006
@@ -33,7 +33,7 @@
var phonecallbacks = new Object;
var extencallbacks = new Object;
var numcallbacks = new Object;
- var fieldnames = new Array( 'delete', 'status', 'new', 'save', 'cancel','name','fullname','secret','email','cid_number','zapchan','context', 'hasvoicemail','hasdirectory','hassip','hasiax','hasmanager','callwaiting','threewaycalling','mailbox','hasagent','group');
+ var fieldnames = new Array( 'delete', 'status', 'new', 'save', 'cancel','name','fullname','secret','email','cid_number','zapchan','context', 'hasvoicemail','hasdirectory','hassip','hasiax','hasmanager','callwaiting','threewaycalling','mailbox','hasagent','group','host');
extencallbacks.format = function(t, x) {
if ((t.name != specialcontext))
@@ -186,7 +186,8 @@
<tr onmouseover="show_tooltip('en', 'users', 12);"><td class="field_text">CTI:</td><td><input type='checkbox' id='hasmanager'></td></tr>
<tr onmouseover="show_tooltip('en', 'users', 13);"><td class="field_text">Call Waiting:</td><td><input type='checkbox' id='callwaiting'></td></tr>
<tr onmouseover="show_tooltip('en', 'users', 14);"><td class="field_text">3-Way Calling:</td><td><input type='checkbox' id='threewaycalling'></td></tr>
- <tr onmouseover="show_tooltip('en', 'users', 15);"><td class="field_text">Is Agent:</td><td><input type='checkbox' id='hasagent'></td></tr>
+ <tr onmouseover="show_tooltip('en', 'users', 15);"><td class="field_text">Is Agent:</td><td><input type='checkbox' id='hasagent'><input type='hidden' id='host'></td>
+ </tr>
</table>
</div>
</td>
More information about the asterisk-gui-commits
mailing list