rbrindley: branch 2.0 r4736 - /branches/2.0/config/js/menus.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Fri Apr 10 06:55:31 CDT 2009
Author: rbrindley
Date: Fri Apr 10 06:55:26 2009
New Revision: 4736
URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4736
Log:
- changed keypressEvents to keypress_events
(closes issue #14873)
Reported by: freerkkalsbeek
Modified:
branches/2.0/config/js/menus.js
Modified: branches/2.0/config/js/menus.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/menus.js?view=diff&rev=4736&r1=4735&r2=4736
==============================================================================
--- branches/2.0/config/js/menus.js (original)
+++ branches/2.0/config/js/menus.js Fri Apr 10 06:55:26 2009
@@ -24,7 +24,7 @@
alias_exten : '6070,1,Goto(voicemenu-custom-1|s|1)' , // line as read from [ASTGUI.contexts.VoiceMenuExtensions] context
includes : ['default'] , // contexts included in this voicemenu
steps : [ 's,1,Answer', 's,2,Wait(1)', 's,3,Background(thank-you-for-calling)' ] , // sequence of steps - the 's' extension
- keypressEvents : {
+ keypress_events : {
// key press events - assumption is that each key press action is defined in a single line
// all priorities greater than 1 are ignored
// if you want a sequence of steps to be executed on a keypress
@@ -532,7 +532,7 @@
alias_exten: '',
includes: [],
steps: [],
- keypressEvents: {}
+ keypress_events: {}
};
vm = ASTGUI.toCustomObject(vm) ;
if( _$('vmenu_dialOther').checked ){
@@ -542,7 +542,7 @@
if(_$('vmenu_allowKeyPressEvents').checked){
['0','1','2','3','4','5','6','7','8','9','*','#','t','i'].each( function(this_key){
if ( _$( 'keyPress_' + this_key ).KPE ){
- vm.keypressEvents[this_key] = _$( 'keyPress_' + this_key ).KPE ;
+ vm.keypress_events[this_key] = _$( 'keyPress_' + this_key ).KPE ;
}
} );
}
@@ -596,9 +596,9 @@
(function(){
var kpe = false;
['0','1','2','3','4','5','6','7','8','9','*','#','t','i'].each( function(this_key){
- if ( THIS_VM.keypressEvents[this_key] ){
- _$( 'keyPress_' + this_key ).innerHTML = ASTGUI.parseContextLine.showAs(THIS_VM.keypressEvents[this_key]) ;
- _$( 'keyPress_' + this_key ).KPE = THIS_VM.keypressEvents[this_key] ;
+ if ( THIS_VM.keypress_events[this_key] ){
+ _$( 'keyPress_' + this_key ).innerHTML = ASTGUI.parseContextLine.showAs(THIS_VM.keypress_events[this_key]) ;
+ _$( 'keyPress_' + this_key ).KPE = THIS_VM.keypress_events[this_key] ;
kpe = true;
}else{
_$( 'keyPress_' + this_key ).innerHTML = '--';
@@ -701,7 +701,7 @@
var hasKeyPresssEvents = function(){
var u = ['0','1','2','3','4','5','6','7','8','9','*','#','t','i'] ;
for( var i = 0 ; i < u.length ; i++ ){
- if( THIS_VM.hasOwnProperty('keypressEvents') && THIS_VM.keypressEvents.hasOwnProperty(u[i]) && THIS_VM.keypressEvents[u[i]].trim() ){
+ if( THIS_VM.hasOwnProperty('keypress_events') && THIS_VM.keypress_events.hasOwnProperty(u[i]) && THIS_VM.keypress_events[u[i]].trim() ){
return 'Yes';
}
}
More information about the asterisk-gui-commits
mailing list