bkruse: branch 1.4 r1439 - /branches/1.4/config/digital.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Aug 23 14:42:48 CDT 2007
Author: bkruse
Date: Thu Aug 23 14:42:47 2007
New Revision: 1439
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1439
Log:
Give some time for ztscan to run before reading the config.
Works great now!
Modified:
branches/1.4/config/digital.html
Modified: branches/1.4/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/config/digital.html?view=diff&rev=1439&r1=1438&r2=1439
==============================================================================
--- branches/1.4/config/digital.html (original)
+++ branches/1.4/config/digital.html Thu Aug 23 14:42:47 2007
@@ -159,22 +159,26 @@
return true;
}
+function load_config_tool() {
+ if(!config2json("ztscan.conf", 1, digitalparse)) {
+ alert("Have you properly installed ztscan to /sbin/ztscan?\n/etc/asterisk/ztscan.conf does not exist.");
+ _$('error_txt').style.display="";
+ _$('error_txt').innerHTML="<br><br>Problem Detecting/No Cards(or spans) Found!<br><br> Error: No Config File";
+ }
+}
function localajaxinit() {
ASTGUI.events.add(document, 'mouseover', show_tooltip);
showdiv_statusmessage();
_$('status_message').style.display="block";
- setTimeout("_$('status_message').style.display='none'", 2000);
+ setTimeout("_$('status_message').style.display='none'", 5000);
_$('message_text').innerHTML = "Detecting Digital Cards ... (Beta)";
setWindowTitle("Digital Setup Wizard");
parent.loadscreen(this);
- parent.astmanEngine.run_tool(asterisk_guiZtscan, onSuccess = function() {
- if(!config2json("ztscan.conf", 1, digitalparse)) {
- alert("Have you properly installed ztscan to /sbin/ztscan?\n/etc/asterisk/ztscan.conf does not exist.");
- _$('error_txt').style.display="";
- _$('error_txt').innerHTML="<br><br>Problem Detecting/No Cards(or spans) Found!<br><br> Error: No Config File";
- }
- });
+ /* Give ztscan 4 seconds to detect and write to ztscan.conf */
+ parent.astmanEngine.run_tool(asterisk_guiZtscan, function(t) {
+ setTimeout('load_config_tool()', 4000);
+ });
}
function free_mem(){
More information about the asterisk-gui-commits
mailing list