From 161998dde6d976c45cfcea31f1128147acc3d64f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 19 Nov 2008 06:35:54 +0000 Subject: Fix some broken-ness: 1) Item_Controller::_create() and _update() were swapped 2) _create() was redirecting to the wrong urls on success 3) Change in-place return parameter from __return to _return 4) Change in-place code to tunnel _put via POST --- core/views/in_place_edit.html.php | 2 +- core/views/welcome.html.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'core/views') diff --git a/core/views/in_place_edit.html.php b/core/views/in_place_edit.html.php index 75500625..f02b77ba 100644 --- a/core/views/in_place_edit.html.php +++ b/core/views/in_place_edit.html.php @@ -3,7 +3,7 @@ $(document).ready(function() { ajax_update = function(className, id) { return function(value, settings) { - var post_data = {'__return': settings.name}; + var post_data = {'_method': 'put', '_return': settings.name}; post_data[settings.name] = value; $.post("".replace("__ID__", id), post_data, diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php index a015fc92..a3f70d33 100644 --- a/core/views/welcome.html.php +++ b/core/views/welcome.html.php @@ -187,7 +187,6 @@ -
@@ -196,7 +195,6 @@ -
-- cgit v1.2.3