pari: branch appliance r416 - /branches/appliance/config/record.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Mon Mar 12 12:10:41 MST 2007
Author: pari
Date: Mon Mar 12 14:10:41 2007
New Revision: 416
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=416
Log:
On the appliance - before recording Voice menus check if there is a compact flash inserted
Modified:
branches/appliance/config/record.html
Modified: branches/appliance/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/branches/appliance/config/record.html?view=diff&rev=416&r1=415&r2=416
==============================================================================
--- branches/appliance/config/record.html (original)
+++ branches/appliance/config/record.html Mon Mar 12 14:10:41 2007
@@ -215,7 +215,24 @@
}
callbacks.loaded = function(){
- parent.loadscreen(this);
+ parent.astmanEngine.run_tool("sh /bin/gui_sysinfo", onSuccess = function() {
+ var opt = { method: 'get', asynchronous: true,
+ onComplete: function(originalRequest){
+ $('sysinfohtml').innerHTML = originalRequest.responseText;
+ if( $('cf_status').innerHTML == "1"){
+ parent.loadscreen(this);
+ }else{
+ gui_alert("You need a Compact Flash to use this feature");
+ parent.astmanEngine.pollEvents();
+ }
+ },
+ onFailure: function(t) { alert("Config Error: " + t.status + ": " + t.statusText); }
+ };
+ opt.parameters="";
+ var tmp = new Ajax.Request("./bkps/sysinfo.html", opt);
+ return true;
+ }
+ );
}
rfilescallbacks.format = function(t) {
@@ -313,7 +330,7 @@
<div id="status"></div>
<BR><BR>
<input type="button" id="vvv" value="Record a new Voice Menu" onclick="show_record();" onmouseover="show_tooltip('en', 'record', 0);">
-
+ <div id="sysinfohtml" style="display:none"></div>
<div id="recordnew_content" STYLE="display:none; position: absolute; left: 20; top: 125; width:475; height:150; background-color:#F4EFE5; border-width: 1px; border-color: #7E5538; border-style: solid;z-index:5">
<table width="100%" cellpadding=0 cellspacing=0 onmousedown="startDrag(event , 'recordnew_content');">
<TR bgcolor="#7E5538" style="background-image:url('images/title_gradient.gif');">
More information about the asterisk-gui-commits
mailing list