bkruse: branch 1.4 r1702 - /branches/1.4/config/numberplan.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Fri Oct 19 13:54:29 CDT 2007


Author: bkruse
Date: Fri Oct 19 13:54:29 2007
New Revision: 1702

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1702
Log:
as siya pointed out, make sure we alert the user when we add and delete the parking lot for a context (or numberplan/'dialplan') closes 11022

Modified:
    branches/1.4/config/numberplan.html

Modified: branches/1.4/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/config/numberplan.html?view=diff&rev=1702&r1=1701&r2=1702
==============================================================================
--- branches/1.4/config/numberplan.html (original)
+++ branches/1.4/config/numberplan.html Fri Oct 19 13:54:29 2007
@@ -39,12 +39,16 @@
 var np_oldselect;
 
 function update_parkedcalls() {
+	var _exten = _$('extensions').innerHTML;
+	var _context = _$('extensions').value;
 	if(_$("parked").checked) {
-		var uri = build_action('append', 0, _$('extensions').value, "include", "parkedcalls");   	
+		gui_feedback("Parking lots now added for Dialplan: " + _exten + " context: " + _context, 'blue');
+		var uri = build_action('append', 0, _exten, "include", "parkedcalls");   	
 		makerequest('u', 'extensions.conf', uri, function(t) { return true;});
 	} 
 	if(!_$("parked").checked) {
-		var uri = build_action('delete', 0, _$('extensions').value, "include", "", "parkedcalls");   	
+		gui_feedback("Parking lots now deleted for Dialplan: " + _exten + " context: " + _context);
+		var uri = build_action('delete', 0, _exten, "include", "", "parkedcalls");   	
 		makerequest('u', 'extensions.conf', uri, function(t) { return true;});
 	}
 }




More information about the asterisk-gui-commits mailing list