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

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Jan 23 20:35:35 CST 2008


Author: pari
Date: Wed Jan 23 20:35:34 2008
New Revision: 2196

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2196
Log:
add an aritificial delay to help users perception.



Modified:
    branches/asterisknow/config/numberplan.html

Change Statistics:
 0 files changed

Modified: branches/asterisknow/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/numberplan.html?view=diff&rev=2196&r1=2195&r2=2196
==============================================================================
--- branches/asterisknow/config/numberplan.html (original)
+++ branches/asterisknow/config/numberplan.html Wed Jan 23 20:35:34 2008
@@ -41,17 +41,29 @@
 function update_parkedcalls() {
 	var _exten = _$('extensions').innerHTML;
 	var _context = _$('extensions').value;
+
+	_$('message_text').innerHTML = "Updating ... ";
+	var _bg_s = _$('bg_transparent').style ;
+	var _sm_s = _$('status_message').style ;
+	_sm_s.zIndex = _bg_s.zIndex + 1;
+	_bg_s.display = '' ;
+	_sm_s.display = '' ;
+
+
 	if(_$("parked").checked) {
 		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;});
+		setTimeout( function(){ _bg_s.display = 'none'; _sm_s.display = 'none'; } , 1000 ); // add an unnecessary delay - for user perception, BE-335
 	} 
 	if(!_$("parked").checked) {
 		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;});
-	}
-}
+		setTimeout( function(){ _bg_s.display = 'none'; _sm_s.display = 'none'; } , 1000 ); // add an unnecessary delay - for user perception, BE-335
+	}
+}
+
 function basicpattern(){
 	iscustom = false;
 	_$('define_advanced').style.display="none";




More information about the asterisk-gui-commits mailing list