pari: trunk r135 - /trunk/config/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu Nov 30 15:41:04 MST 2006


Author: pari
Date: Thu Nov 30 16:41:04 2006
New Revision: 135

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=135
Log:
Make all users agents by default

Modified:
    trunk/config/meetme.html
    trunk/config/numberplan.html
    trunk/config/options.html
    trunk/config/users.html
    trunk/config/voicemail.html

Modified: trunk/config/meetme.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/meetme.html?view=diff&rev=135&r1=134&r2=135
==============================================================================
--- trunk/config/meetme.html (original)
+++ trunk/config/meetme.html Thu Nov 30 16:41:04 2006
@@ -263,8 +263,8 @@
 														</table>
 												</td>
 										</tr>
-										<tr onmouseover="show_tooltip('en', 'meetme', 6);"><td style="cursor: pointer; cursor: hand;"><img id="split" onClick="togglefeatures()" src="images/split-v.png"></td></tr>
-										<tr><td><div style="background-image:url(images/slice-v.png)" id='advancedw'>
+										<tr onmouseover="show_tooltip('en', 'meetme', 6);"><td style="cursor: pointer; cursor: hand;"><img id="split" onClick="togglefeatures()" src="images/split-v.gif"></td></tr>
+										<tr><td><div style="background-image:url(images/slice-v.gif);" id='advancedw'>
 															<table id='advancedi' align='center'>
 																<tr onmouseover="show_tooltip('en', 'meetme', 7);"><td class="field_text">Room Override:</td><td>&nbsp;<input size='5' id='room' pattern='^\d*$' class="input8"></td></tr>
 																<tr><td class="field_text">Record conference</td><td><input type='checkbox' id='record'></td>	</tr>
@@ -275,7 +275,7 @@
 														</div>
 												</td>
 										</tr>
-										<tr onmouseover="show_tooltip('en', 'meetme', 6);"><td style="cursor: pointer; cursor: hand;"><img onClick="togglefeatures()" src="images/adv-v.png"></td></tr>
+										<tr onmouseover="show_tooltip('en', 'meetme', 6);"><td style="cursor: pointer; cursor: hand;"><img onClick="togglefeatures()" src="images/adv-v.gif"></td></tr>
 									</table>
 					</div>
 		</td>

Modified: trunk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/numberplan.html?view=diff&rev=135&r1=134&r2=135
==============================================================================
--- trunk/config/numberplan.html (original)
+++ trunk/config/numberplan.html Thu Nov 30 16:41:04 2006
@@ -367,14 +367,14 @@
 	}
 
 	function priority_up(){
-		a =  $('extensions').selectedIndex;
-		b = a-1;
+		var a =  $('extensions').selectedIndex;
+		var b = a-1;
 		swap_priorities(a,b);
 	}
 
 	function priority_down(){
-		a =  $('extensions').selectedIndex;
-		b = a+1;
+		var a =  $('extensions').selectedIndex;
+		var b = a+1;
 		swap_priorities(a,b);
 	}
 
@@ -426,9 +426,9 @@
 			sela = $('extensions').options[a].selected;
 			selb = $('extensions').options[b].selected;
 
-			v = $('extensions').selectedIndex;
-			t_pattern1 = $('extensions').options[a].value.split(']');
-			t_pattern2 = $('extensions').options[b].value.split(']');
+			var v = $('extensions').selectedIndex;
+			var t_pattern1 = $('extensions').options[a].value.split(']');
+			var t_pattern2 = $('extensions').options[b].value.split(']');
 
 			function subfield_value(n,field){
 				if (n ==1)
@@ -437,15 +437,15 @@
 					return box.stored_config.catbyname[t_pattern2[0]].subfields[t_pattern2[1]][field];
 			}
 			
-			value_one =  subfield_value(1,'name')+ "," +   subfield_value(2,'priority') + ","+ subfield_value(1,'app') +"(" + subfield_value(1,'args') +")";
-			match_one =  subfield_value(1,'name')+ "," +   subfield_value(1,'priority') + ","+ subfield_value(1,'app') +"(" + subfield_value(1,'args') +")";
-			uri = build_action('update', 0, subfield_value(1,'context'),'exten', value_one, match_one);
-
-			value_two =  subfield_value(1,'name')+ "," +   subfield_value(1,'priority') + ","+ subfield_value(2,'app') +"(" + subfield_value(2,'args') +")";
-			match_two =  subfield_value(1,'name')+ "," +   subfield_value(2,'priority') + ","+ subfield_value(2,'app') +"(" + subfield_value(2,'args') +")";
+			var value_one =  subfield_value(1,'name')+ "," +   subfield_value(2,'priority') + ","+ subfield_value(1,'app') +"(" + subfield_value(1,'args') +")";
+			var match_one =  subfield_value(1,'name')+ "," +   subfield_value(1,'priority') + ","+ subfield_value(1,'app') +"(" + subfield_value(1,'args') +")";
+			var uri = build_action('update', 0, subfield_value(1,'context'),'exten', value_one, match_one);
+
+			var value_two =  subfield_value(1,'name')+ "," +   subfield_value(1,'priority') + ","+ subfield_value(2,'app') +"(" + subfield_value(2,'args') +")";
+			var match_two =  subfield_value(1,'name')+ "," +   subfield_value(2,'priority') + ","+ subfield_value(2,'app') +"(" + subfield_value(2,'args') +")";
 			uri += build_action('update', 1, subfield_value(2,'context'),'exten', value_two, match_two);
 			opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent(box.config_file) + "&dstfilename=" + encodeURIComponent(box.config_file) + uri;
-			tmp = new Ajax.Request(box.engine.url, opt);
+			var tmp = new Ajax.Request(box.engine.url, opt);
 			
 			box.stored_config.catbyname[t_pattern1[0]].fields[t_pattern1[1]] = value_one;
 			box.stored_config.catbyname[t_pattern2[0]].fields[t_pattern2[1]] = value_two;

Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?view=diff&rev=135&r1=134&r2=135
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Thu Nov 30 16:41:04 2006
@@ -209,6 +209,10 @@
 }
 
 
+function tosetup(){
+	parent.window.location.href = "./setup/install.html";
+}
+
 function localajaxinit(){
 	for (var x =0; x < fieldnames.length; x++) {
 		widgets[fieldnames[x]] = $(fieldnames[x]);
@@ -245,6 +249,9 @@
 			</td>
 	</tr>
 	<tr valign="top" height="18">	<td></td></tr>
+<!-- 	<tr valign="top" height="18">	<td align="center"><A href="#" onclick="tosetup();">Run Setup Wizard</A></td>
+	</tr>
+	<tr valign="top" height="18">	<td></td></tr> -->
 	<tr>	<td align="center" valign="top">
 					<div id="gui_accesssettings" class="chanlist_small"  style="width: 320px; height:120">
 					<table>	

Modified: trunk/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/users.html?view=diff&rev=135&r1=134&r2=135
==============================================================================
--- trunk/config/users.html (original)
+++ trunk/config/users.html Thu Nov 30 16:41:04 2006
@@ -96,6 +96,10 @@
 	}
 
 	callbacks.postselect = function(box, val) {
+		if (adstatus == "hidden") {
+			adstatus = "shown";
+			 togglefeatures() ;
+		}
 		parent.$('tooltip').innerHTML = parent.tooltip_default ; 
 		if( box.selectedIndex == -1)
 			return true;
@@ -124,7 +128,6 @@
 					alert(" You can not edit the selected entry from here.\n Please click on the \'Voice Menus\' panel to edit the selected entry");
 					return true;
 				}
-
 		}
 	}
 
@@ -218,9 +221,9 @@
 												</table>
 										</td>
 									</tr>
-									<tr><td style="cursor: pointer; cursor: hand;"><img id="split" onClick="togglefeatures()" src="images/split-v.png"></td></tr>
+									<tr><td style="cursor: pointer; cursor: hand;"><img id="split" onClick="togglefeatures()" src="images/split-v.gif"></td></tr>
 									<tr><td align="center">
-											<div style="background-image:url(images/slice-v.png); height:1px" id='features'>
+											<div style="background-image:url(images/slice-v.gif); height:1px" id='features'>
 												<table align='center'  width='60%'  cellpadding=0 cellspacing=0>
 												<tr onmouseover="show_tooltip('en', 'users', 8);"><td class="field_text">Voicemail:</td><td><input type='checkbox' id='hasvoicemail'></td></tr>
 												<tr onmouseover="show_tooltip('en', 'users', 9);"><td class="field_text">In Directory:</td><td><input type='checkbox' id='hasdirectory'></td></tr>
@@ -229,13 +232,13 @@
 												<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&nbsp;Waiting:</td><td><input type='checkbox' id='callwaiting'></td></tr>
 												<tr onmouseover="show_tooltip('en', 'users', 14);"><td class="field_text">3-Way&nbsp;Calling:</td><td><input type='checkbox' id='threewaycalling'></td></tr>
-												<tr onmouseover="show_tooltip('en', 'users', 15);"><td class="field_text">Is&nbsp;Agent:</td><td><input type='checkbox' id='hasagent'><input type='hidden' dfalt='dynamic' id='host'></td>
+												<tr onmouseover="show_tooltip('en', 'users', 15);"><td class="field_text">Is&nbsp;Agent:</td><td><input type='checkbox' id='hasagent' dfalt='1'><input type='hidden' dfalt='dynamic' id='host'></td>
 												</tr>
 												</table>
 											</div>
 											</td>
 									</tr>
-									<tr><td style="cursor: pointer; cursor: hand;"><img onClick="togglefeatures()" src="images/adv-v.png"></td></tr>
+									<tr><td style="cursor: pointer; cursor: hand;"><img onClick="togglefeatures()" src="images/adv-v.gif"></td></tr>
 								</table>
 							</div>
 		</td></tr>				

Modified: trunk/config/voicemail.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/voicemail.html?view=diff&rev=135&r1=134&r2=135
==============================================================================
--- trunk/config/voicemail.html (original)
+++ trunk/config/voicemail.html Thu Nov 30 16:41:04 2006
@@ -37,6 +37,7 @@
 	var usercallbacks = new Object;
 	var voicemailcallbacks = new Object;
 	var vmfields = new Array('status', 'save', 'cancel','attach','maxmsg','minmessage','maxmessage','saycid','sayduration', 'emailonly','review','attachfmt','maxgreet','operator','envelope');
+
 
 	var fields = new Array('name');
 	
@@ -83,6 +84,8 @@
 		$('name').disabled = false;
 		if (whichexten.length ==0 ){
 			alert("Looks like a default Voicemail Extension is not yet configured \n\n Please set an \'Extension for Checking messages\'  and \n click on 'save' button");
+		}else{
+			
 		}
 		parent.loadscreen(this);
 	}
@@ -172,7 +175,11 @@
 		}
 	}
 	
-	
+	voicemailcallbacks.cancelchanges = function(){
+		$('name').value = vmexten ; 
+	}
+
+
 	voicemailcallbacks.savechanges = function() {
 		if (vmexten != $('name').value) {
 			if (vmexten.length) {



More information about the asterisk-gui-commits mailing list