From 8f175fb48e3e748fae0003214a1eabbb296c19e5 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 24 Jun 2008 10:17:19 +0000 Subject: Widgets now reload properly git-svn-id: https://code.elgg.org/elgg/trunk@1089 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/widgets/editwrapper.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'views/default/widgets/editwrapper.php') diff --git a/views/default/widgets/editwrapper.php b/views/default/widgets/editwrapper.php index a01f18310..bc7d497d9 100644 --- a/views/default/widgets/editwrapper.php +++ b/views/default/widgets/editwrapper.php @@ -47,10 +47,13 @@ $(document).ready(function() { $("#submit").attr("disabled","disabled"); $("#submit").attr("value",""); + $("#widgetcontent").html(' true)); ?>'); var variables = $("#widgetform").serialize(); $.post($("#widgetform").attr("action"),variables,function() { - $("#widget").load("pg/view/?shell=no&username=username; ?>&context="); + $("#submit").attr("disabled",""); + $("#submit").attr("value",""); + $("#widgetcontent").load("pg/view/?shell=no&username=username; ?>&context=&callback=true"); }); return false; -- cgit v1.2.3