pari: trunk r334 - /trunk/config/queues.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Tue Feb 13 16:07:31 MST 2007
Author: pari
Date: Tue Feb 13 17:07:30 2007
New Revision: 334
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=334
Log:
feature: assign an MOH class for queues
Modified:
trunk/config/queues.html
Modified: trunk/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/queues.html?view=diff&rev=334&r1=333&r2=334
==============================================================================
--- trunk/config/queues.html (original)
+++ trunk/config/queues.html Tue Feb 13 17:07:30 2007
@@ -28,6 +28,7 @@
<script>
var adstatus;
+var mohcallbacks = new Object;
var queuecallbacks = new Object;
var usercallbacks = new Object;
var extencallbacks = new Object;
@@ -35,8 +36,8 @@
var widgets = new Array;
var queueagents = new Array;
var queuenames = new Array;
-var fieldnames = new Array( 'name', 'delete','save', 'status', 'new', 'cancel','fullname', 'strategy', 'timeout', 'wrapuptime','autofill','autopause','maxlen', 'joinempty', 'leavewhenempty', 'reportholdtime','agents');
-var focus_fields = new Array('name','fullname','strategy','timeout','wrapuptime','maxlen');
+var fieldnames = new Array( 'name', 'delete','save', 'status', 'new', 'cancel','fullname', 'strategy', 'timeout', 'wrapuptime','autofill','autopause','maxlen', 'joinempty', 'leavewhenempty', 'reportholdtime','agents','musicclass');
+var focus_fields = new Array('name','fullname','strategy','timeout','wrapuptime','maxlen','musicclass');
var k =0;
var j = -1;
@@ -117,7 +118,7 @@
var p = 0;
var q = 0;
var r = 0;
- var fields = new Array('fullname', 'strategy', 'timeout', 'wrapuptime','autofill','autopause','maxlen', 'joinempty', 'leavewhenempty', 'reportholdtime');
+ var fields = new Array('fullname', 'strategy', 'timeout', 'wrapuptime','autofill','autopause','maxlen', 'joinempty', 'leavewhenempty', 'reportholdtime','musicclass');
var otherfields_action, tmp;
var opt = {
method: 'get',
@@ -443,12 +444,19 @@
widgets[focus_fields[x]].onblur = function(){this.className = 'input8';}
}
adstatus = "hidden";
- parent.astmanEngine.config2list("extensions.conf", $('extensions'), new Array(), extencallbacks);
+ parent.astmanEngine.config2list("musiconhold.conf", $('musicclass'), new Array(), mohcallbacks);
$('save_q').disabled = true;
$('message_text').innerHTML = " Saving Changes ... ";
return;
}
+mohcallbacks.format = function(t) {
+ return t.name;
+}
+
+mohcallbacks.loaded = function() {
+ parent.astmanEngine.config2list("extensions.conf", $('extensions'), new Array(), extencallbacks);
+}
</script>
<body id="foo" onload="localajaxinit()" bgcolor="EFEFEF">
<div class="mainscreenTitleBar">
@@ -494,12 +502,22 @@
<table id='advancedi' align='center'>
<tr onmouseover="show_tooltip('en', 'queues', 5);" ><td class="field_text">TimeOut:</td><td> <input size='2' id='timeout' pattern='^\d*$' class="input8"></td></tr>
<tr onmouseover="show_tooltip('en', 'queues', 6);" ><td class="field_text">Wrapup Time:</td><td> <input size='2' id='wrapuptime' pattern='^\d*$' class="input8"></td></tr>
- <tr onmouseover="show_tooltip('en', 'queues', 7);" ><td class="field_text">Auto Fill:</td><td><input type=checkbox id='autofill'></td></tr>
- <tr onmouseover="show_tooltip('en', 'queues', 8);" ><td class="field_text">Auto Pause:</td><td><input type=checkbox id='autopause'></td></tr>
+ <tr>
+ <td colspan=2>
+ <span class="field_text" onmouseover="show_tooltip('en', 'queues', 7);" ><input type=checkbox id='autofill'> Auto Fill</span>
+ <span class="field_text" onmouseover="show_tooltip('en', 'queues', 8);"> <input type=checkbox id='autopause'>Auto Pause</span>
+ </td>
+ </tr>
+
<tr onmouseover="show_tooltip('en', 'queues', 9);" ><td class="field_text">Max Len:</td><td> <input size='2' id='maxlen' pattern='^\d*$' class="input8"></td></tr>
<tr onmouseover="show_tooltip('en', 'queues', 10);" ><td class="field_text">JoinEmpty:</td><td><input type=checkbox id='joinempty'></td></tr>
<tr onmouseover="show_tooltip('en', 'queues', 11);" ><td class="field_text">LeaveWhenEmpty:</td><td><input type=checkbox id='leavewhenempty'></td></tr>
<tr onmouseover="show_tooltip('en', 'queues', 12);" ><td class="field_text">Report Hold Time:</td><td><input type=checkbox id='reportholdtime'></td></tr>
+ <tr>
+ <td colspan=2 class="field_text">
+ Music On Hold: <select id="musicclass" class="input8"></select>
+ </td>
+ </tr>
</table>
</div>
</td>
More information about the asterisk-gui-commits
mailing list