You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by fm...@apache.org on 2013/11/04 17:08:19 UTC
svn commit: r1538661 -
/felix/trunk/webconsole/src/main/resources/res/ui/config.js
Author: fmeschbe
Date: Mon Nov 4 16:08:19 2013
New Revision: 1538661
URL: http://svn.apache.org/r1538661
Log:
FELIX-4301 Make sure the request data is transmitted as part of the
request body and not as part of the request URL.
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=1538661&r1=1538660&r2=1538661&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/resources/res/ui/config.js (original)
+++ felix/trunk/webconsole/src/main/resources/res/ui/config.js Mon Nov 4 16:08:19 2013
@@ -405,7 +405,7 @@ function configConfirm(/* String */ mess
function deleteConfig(/* String */ configId, /* String */ bundleLocation)
{
if ( configConfirm(i18n.del_ask, configId, bundleLocation) ) {
- $.post(pluginRoot + '/' + configId + '?' + param.apply + '=1&' + param.dele + '=1', null, function() {
+ $.post(pluginRoot + '/' + configId, param.apply + '=1&' + param.dele + '=1', null, function() {
document.location.href = pluginRoot;
}, 'json');
return true;
@@ -416,7 +416,7 @@ function deleteConfig(/* String */ confi
function unbindConfig(/* String */ configId, /* String */ bundleLocation)
{
if ( configConfirm(i18n.unbind_ask, configId, bundleLocation) ) {
- $.post(pluginRoot + '/' + configId + '?' + param.unbind + '=1', null, function() {
+ $.post(pluginRoot + '/' + configId, param.unbind + '=1', null, function() {
document.location.href = pluginRoot + '/' + configId;
}, 'json');
return true;
@@ -513,7 +513,7 @@ $(document).ready(function() {
unbindConfig($(this).attr('__pid'), $(this).attr('__location'));
}
_buttons[i18n.save] = function() {
- $.post(pluginRoot + '/' + $(this).attr('__pid') + '?' + $(this).find('form').serialize(), function() {
+ $.post(pluginRoot + '/' + $(this).attr('__pid'), $(this).find('form').serialize(), function() {
// reload on success - prevents AJAX errors - see FELIX-3116
document.location.href = pluginRoot;
});