pari: trunk r657 - /trunk/config/feditor.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Fri Apr 13 14:47:46 MST 2007


Author: pari
Date: Fri Apr 13 16:47:45 2007
New Revision: 657

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=657
Log:
Got rid of the Load button - Loading file immediately when a file is selected 

Modified:
    trunk/config/feditor.html

Modified: trunk/config/feditor.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/feditor.html?view=diff&rev=657&r1=656&r2=657
==============================================================================
--- trunk/config/feditor.html (original)
+++ trunk/config/feditor.html Fri Apr 13 16:47:45 2007
@@ -88,6 +88,7 @@
 	top._$('mainscreen').width= 798;
 	setWindowTitle("File Editor");
 	load_recordedfiles();
+	add_event( _$('filenames') , 'change' , loadfile ) ;
 	parent.loadscreen(this);
 }
 
@@ -138,6 +139,7 @@
 
 
 function loadfile(){
+	if( !_$('filenames').value ) return;
 	global_fileBeingEdited = _$('filenames').value ;
 	_$('AddContext').style.display = "none";
 	_$('div_filename').style.display = "";
@@ -351,7 +353,7 @@
 <div style="font-size : 12px; padding : 4px 6px 4px 6px; border-style : solid none solid none; border-top-color : #BDC7E7; border-bottom-color : #182052; border-width : 1px 0px 1px 0px; background-color : #ef8700; color : #ffffff;">
 	<span style="margin-left: 4px;font-weight:bold;">File Editor</span>
 	<span style="cursor: pointer; cursor: hand;" onclick="window.location.href=window.location.href;" >&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;</span>
-	<span><select id="filenames" class="input9"></select>&nbsp;<input type="button" value="Load" style="font-size: 8pt; border:1px solid; padding : 0px 0px 0px 0px;" onclick="loadfile();"></span>
+	<span><select id="filenames" class="input9"></select></span>
 </div>
 <div style="display:none; font-size:14px; font-weight:bold; font-family:helvetica,sans-serif,'trebuchet ms'; padding : 6px 0px 6px 10px;" id="div_filename">
 	<span id="CurrentFileName"></span>&nbsp;&nbsp;



More information about the asterisk-gui-commits mailing list