rbrindley: branch rbrindley/astman_revamp r4683 - /team/rbrindley/astman_reva...

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Apr 1 08:30:11 CDT 2009


Author: rbrindley
Date: Wed Apr  1 08:30:08 2009
New Revision: 4683

URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4683
Log:

- updated with latest branches/2.0


Modified:
    team/rbrindley/astman_revamp/config/js/callingrules.js

Modified: team/rbrindley/astman_revamp/config/js/callingrules.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/callingrules.js?view=diff&rev=4683&r1=4682&r2=4683
==============================================================================
--- team/rbrindley/astman_revamp/config/js/callingrules.js (original)
+++ team/rbrindley/astman_revamp/config/js/callingrules.js Wed Apr  1 08:30:08 2009
@@ -68,6 +68,8 @@
 			ASTGUI.selectbox.selectOption(DOM_new_crl_fotrunk, tmp_cr.secondTrunk );
 			DOM_new_crl_fotr_stripx.value = tmp_cr.stripdigits_secondTrunk ;
 			DOM_new_crl_fotr_prepend.value = tmp_cr.secondPrepend ;
+		} else {
+			DOM_new_crl_foChkbx.checked = false;
 		}
 		en_db_fofields();
 	}
@@ -306,7 +308,7 @@
 		}
 	}else{
 		var t1 = ASTGUI.getFieldValue(DOM_new_crl_trunk);
-		var t2 = ASTGUI.getFieldValue(DOM_new_crl_fotrunk);
+		var t2 = (DOM_new_crl_foChkbx.checked) ? ASTGUI.getFieldValue(DOM_new_crl_fotrunk) : '';
 		if( _$('new_crl_foChkbx').checked && t1 == t2 ){
 			ASTGUI.feedback( { msg:'Failover trunk can not be same as the primary trunk !', showfor: 3, color:'red' });
 			DOM_new_crl_fotrunk.focus();




More information about the asterisk-gui-commits mailing list