summaryrefslogtreecommitdiff
path: root/core/views
diff options
context:
space:
mode:
Diffstat (limited to 'core/views')
-rw-r--r--core/views/in_place_edit.html.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/views/in_place_edit.html.php b/core/views/in_place_edit.html.php
index 2cf0c8a1..8d60df64 100644
--- a/core/views/in_place_edit.html.php
+++ b/core/views/in_place_edit.html.php
@@ -3,8 +3,10 @@
$(document).ready(function() {
ajax_update = function(className, id) {
return function(value, settings) {
+ var post_data = {'__return': settings.name};
+ post_data[settings.name] = value;
$.post("<?= url::site("item/__ID__") ?>".replace("__ID__", id),
- {"key": settings.name, "value": value},
+ post_data,
function(data, textStatus) {
if (textStatus == "success") {
$(className).html(data);