pari: branch asterisknow r2043 - /branches/asterisknow/config/numberplan.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Dec 27 12:29:52 CST 2007


Author: pari
Date: Thu Dec 27 12:29:52 2007
New Revision: 2043

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2043
Log:
Automatically create a default dialplan instead of forcing the user to click some button to create it anyway

Modified:
    branches/asterisknow/config/numberplan.html

Modified: branches/asterisknow/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/numberplan.html?view=diff&rev=2043&r1=2042&r2=2043
==============================================================================
--- branches/asterisknow/config/numberplan.html (original)
+++ branches/asterisknow/config/numberplan.html Thu Dec 27 12:29:52 2007
@@ -601,24 +601,21 @@
 
 function delete_numberplan(){	_$('delete').click();	}
 
-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(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 ;
-		_sm_s.zIndex = _bg_s.zIndex + 1;
-		_bg_s.display = '' ;
-		_sm_s.display = "" ;
-		return true;
-	}
+function addthe_default_callingplan(){
+	_$('message_text').innerHTML = "A default DialPlan is not found !! " + "<BR><BR> Creating default DialPlan";
+	var _bg_s = _$('bg_transparent').style ;
+	var _sm_s = _$('status_message').style ;
+	_sm_s.left = 120 ;
+	_sm_s.zIndex = _bg_s.zIndex + 1;
+	_bg_s.display = '' ;
+	_sm_s.display = "" ;
+
 	var default_planname = 'numberplan-custom-1' ;
 	var uri = build_action('newcat', 0, default_planname ,"", "");
-	uri += build_action('append', 1, default_planname,"plancomment", "DialPlan1"); 
+	uri += build_action('append', 1, default_planname,"plancomment", "Default DialPlan"); 
 	uri += build_action('append', 2, default_planname,"include", "default"); 
 	uri += build_action('append', 3, default_planname,"include", "parkedcalls"); 
-	makerequest('u','extensions.conf', uri, function(t){gui_feedback("Created Default DialPlan",'green'); location.reload(); }   );
+	makerequest('u','extensions.conf', uri, function(t){gui_feedback("Created a Default DialPlan",'green',3000); location.reload(); }   );
 }
 
 




More information about the asterisk-gui-commits mailing list