pari: branch asterisknow r2194 - /branches/asterisknow/config/trunks.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Jan 23 19:23:54 CST 2008
Author: pari
Date: Wed Jan 23 19:23:52 2008
New Revision: 2194
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2194
Log:
Fix for: Initial click for adding a service provider does not display bandwidth.com's information or image.
- Reported by Matt Willson, BE-228
Modified:
branches/asterisknow/config/trunks.html
Change Statistics:
0 files changed
Modified: branches/asterisknow/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/trunks.html?view=diff&rev=2194&r1=2193&r2=2194
==============================================================================
--- branches/asterisknow/config/trunks.html (original)
+++ branches/asterisknow/config/trunks.html Wed Jan 23 19:23:52 2008
@@ -559,11 +559,12 @@
}
callbacks.newcategory = function() {
- var tmp = null;
+ var tmp = {};
+ tmp.fieldbyname = {};
var x;
var _devices = _$('devices');
- if ( _devices.stored_config.catbyname['general'])
- tmp = objcopy( _devices.stored_config.catbyname['general']);
+// if ( _devices.stored_config.catbyname['general'])
+// tmp = objcopy( _devices.stored_config.catbyname['general']);
if (tmp) {
x = 1;
while( _devices.stored_config.catbyname['trunk_' + x]) x++;
@@ -1134,7 +1135,14 @@
//_$('voip').style.height =350;
_$('trunkstylevoip').click();
- _$('provider').options[0].selected = true;
+ //_$('provider').options[0].selected = true;
+ _$('provider').selectedIndex = -1 ;
+ setTimeout(
+ function(){
+ try{$('provider').selectitem(0); showhidefields(); }catch(err){}
+ }, 500
+ );
+
showhidefields();
}
}
More information about the asterisk-gui-commits
mailing list