FELIX-3814 : Javascript error when directly invoking a configuration with IE8
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1420302 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/res/ui/config.js b/webconsole/src/main/resources/res/ui/config.js
index e0baaaf..1fb4e6a 100644
--- a/webconsole/src/main/resources/res/ui/config.js
+++ b/webconsole/src/main/resources/res/ui/config.js
@@ -33,7 +33,13 @@
function configure(pid, create) {
var uri = pluginRoot + '/' + pid;
- $.post(create ? uri + '?create=1' : uri, null, displayConfigForm, 'json');
+ // we have to add a cache killer for IE8
+ var postUri = uri + '?';
+ if ( create ) {
+ postUri = postUri + 'create=1&';
+ }
+ postUri = postUri + 'ts='+new Date().getMilliseconds();
+ $.post(postUri, null, displayConfigForm, 'json');
}
function displayConfigForm(obj) {