pari: branch 2.0 r4464 - /branches/2.0/config/js/astman.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Jan 22 16:42:15 CST 2009
Author: pari
Date: Thu Jan 22 16:42:14 2009
New Revision: 4464
URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4464
Log:
check if 'fields' is an array
Modified:
branches/2.0/config/js/astman.js
Modified: branches/2.0/config/js/astman.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/astman.js?view=diff&rev=4464&r1=4463&r2=4464
==============================================================================
--- branches/2.0/config/js/astman.js (original)
+++ branches/2.0/config/js/astman.js Thu Jan 22 16:42:14 2009
@@ -454,6 +454,10 @@
},
checkRequiredFields: function( fields ){
+ // fields is an array of fieldnames or elements
+ if(!ASTGUI.isArray(fields)){
+ return true;
+ }
for(var g=0; g < fields.length ; g++ ){
var field = fields[g];
if(typeof field =='string'){
More information about the asterisk-gui-commits
mailing list