pari: trunk r458 - in /trunk/config: numberplan.html sysinfo.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue Mar 20 23:47:51 MST 2007


Author: pari
Date: Wed Mar 21 01:47:51 2007
New Revision: 458

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=458
Log:
Fixing Double confirmation while creating a default numberplan

Modified:
    trunk/config/numberplan.html
    trunk/config/sysinfo.html

Modified: trunk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/numberplan.html?view=diff&rev=458&r1=457&r2=458
==============================================================================
--- trunk/config/numberplan.html (original)
+++ trunk/config/numberplan.html Wed Mar 21 01:47:51 2007
@@ -577,10 +577,10 @@
 
 function delete_numberplan(){	_$('delete').click();	}
 
-function addthe_default_callingplan(){
-	if(!confirm("A default Dial Plan is not found. \n Do you want to create a default Dial Plan ") ){ 
+function addthe_default_callingplan(a){
+	if(!a){
 		_$('message_text').innerHTML = "A default DialPlan is not found !! "
-		+ "<BR><BR> <A href=\"#\" class=\"splbutton\" onclick=\"addthe_default_callingplan()\">click here</A> to create a default DialPlan";
+		+ "<BR><BR> <A href=\"#\" class=\"splbutton\" onclick=\"addthe_default_callingplan(1)\">click here</A> to create a default DialPlan";
 		var _bg_s = _$('bg_transparent').style ;
 		var _sm_s = _$('status_message').style ;
 		_sm_s.left = 120 ;

Modified: trunk/config/sysinfo.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/sysinfo.html?view=diff&rev=458&r1=457&r2=458
==============================================================================
--- trunk/config/sysinfo.html (original)
+++ trunk/config/sysinfo.html Wed Mar 21 01:47:51 2007
@@ -31,13 +31,12 @@
 var divs_tohide = new Array('osversion_div', 'uptime_div', 'asterisk_div', 'today_div','hostname_div','ifconfig_div','df_div','memory_div','today_log');
 
 function thisday_log(){
-	var _sm = _$('status_message').style ;
-	_sm.display = "" ;
+	 _$('status_message').style.display = "" ;
 	var _ld = _$('log_day').value; 
 	if(  _ld < 10 ){ var space = "  "; }else{ var space = " ";  }
 	var tmp_command = "/bin/grep /var/log/asterisk/messages -e '" + _$('log_month').value + space + _ld 
 						+ " ' > /var/lib/asterisk/static-http/config/bkps/today_log.html" ;
-	parent.astmanEngine.run_tool( tmp_command , onSuccess = function() { _sm.display ='none'; load_todayslog(); } );
+	parent.astmanEngine.run_tool( tmp_command , onSuccess = function() { _$('status_message').style.display='none'; load_todayslog(); } );
 }
 
 function 	load_todayslog(){



More information about the asterisk-gui-commits mailing list