You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by vv...@apache.org on 2011/09/15 09:06:37 UTC

svn commit: r1170981 - /felix/trunk/webconsole/src/main/resources/res/ui/config.js

Author: vvalchev
Date: Thu Sep 15 07:06:36 2011
New Revision: 1170981

URL: http://svn.apache.org/viewvc?rev=1170981&view=rev
Log:
FELIX-3116 : Saving configuration shows "AJAX error" dialog

Modified:
    felix/trunk/webconsole/src/main/resources/res/ui/config.js

Modified: felix/trunk/webconsole/src/main/resources/res/ui/config.js
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/resources/res/ui/config.js?rev=1170981&r1=1170980&r2=1170981&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/resources/res/ui/config.js (original)
+++ felix/trunk/webconsole/src/main/resources/res/ui/config.js Thu Sep 15 07:06:36 2011
@@ -535,9 +535,11 @@ $(document).ready(function() {
 	    	unbindConfig($(this).attr('__pid'), $(this).attr('__location'));
 	}
 	_buttons[i18n.save] = function() {
-		$.post(pluginRoot + '/' + $(this).attr('__pid') + '?' + $(this).find('form').serialize());
+		$.post(pluginRoot + '/' + $(this).attr('__pid') + '?' + $(this).find('form').serialize(), function() {
+			// reload on success - prevents AJAX errors - see FELIX-3116
+			document.location.href = pluginRoot; 
+		});
 		$(this).dialog('close');
-		document.location.href = pluginRoot;
 	}
 	// prepare editor, but don't open yet!
 	editor = $('#editor').dialog({