pari: trunk r691 - /trunk/config/numberplan.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue Apr 17 16:35:13 MST 2007


Author: pari
Date: Tue Apr 17 18:35:12 2007
New Revision: 691

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=691
Log:
feedback messages for 'Calling Rules'

Modified:
    trunk/config/numberplan.html

Modified: trunk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/numberplan.html?view=diff&rev=691&r1=690&r2=691
==============================================================================
--- trunk/config/numberplan.html (original)
+++ trunk/config/numberplan.html Tue Apr 17 18:35:12 2007
@@ -181,12 +181,14 @@
 		//		newpriority++;
 		//	}
 		//}
-		add_rule_fromeditform( newpriority, oncomplete = function(){ show_npdata_table(_extv); } );
+		var msg = "Calling Rule Added." ;
+		add_rule_fromeditform( newpriority, oncomplete = function(){ show_npdata_table(_extv);gui_feedback(msg,'blue'); } );
 	 }else{	// update exiting rule
 		// delete existing rule
 		// add rule with new values
 		delete_callingrule(pattern_beingedited,pattern_beingedited_priority, oncomplete = function(){
-				add_rule_fromeditform( pattern_beingedited_priority, oncomplete = function(){ show_npdata_table(_extv); } );
+				var msg = "Calling Rule Updated." ;
+				add_rule_fromeditform( pattern_beingedited_priority, oncomplete = function(){show_npdata_table(_extv); gui_feedback(msg,'blue');});
 			} 
 		);
 		//$('userscontent').style.display='none';
@@ -371,7 +373,7 @@
 
 function deletecallingrule(a,b){ // a is pattern, b is priority
 	if(!confirm("Are you sure ?")) { return true; }
-	delete_callingrule(a,b, oncomplete = function(){ show_npdata_table( _$('extensions').value ); } ) ;
+	delete_callingrule(a,b, oncomplete = function(){ show_npdata_table( _$('extensions').value ); gui_feedback("Calling Rule Deleted",'default'); } ) ;
 }
 
 function delete_callingrule(a,b,oncomplete){ // a is pattern, b is priority
@@ -621,7 +623,7 @@
 	var opt = {
 		method: 'get',
 		asynchronous: true,
-		onSuccess: function(t) { location.reload(); },
+		onSuccess: function(t) { gui_feedback("Created Default DialPlan",'green'); location.reload(); },
 		onFailure: function(t) { gui_alert("Config Error: " + t.status + ": " + t.statusText); }
 	};
 	opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;



More information about the asterisk-gui-commits mailing list