From 2565d6e5e04c756db1760081cb7acc33d78401ce Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 23 Jun 2008 17:56:53 +0000 Subject: Some tweaks to the 'saving' box git-svn-id: https://code.elgg.org/elgg/trunk@1079 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/widgets/editwrapper.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'views') diff --git a/views/default/widgets/editwrapper.php b/views/default/widgets/editwrapper.php index ad8c90b2a..a01f18310 100644 --- a/views/default/widgets/editwrapper.php +++ b/views/default/widgets/editwrapper.php @@ -11,9 +11,11 @@ * @link http://elgg.org/ */ + $guid = $vars['entity']->getGUID(); + ?> -
+

- - + $(document).ready(function() { - $("#widgetformgetGUID(); ?>").submit(function () { + $("#widgetform").submit(function () { + + $("#submit").attr("disabled","disabled"); + $("#submit").attr("value",""); - var variables = $("#widgetformgetGUID(); ?>").serialize(); - $.post($("#widgetformgetGUID(); ?>").attr("action"),variables,function() { - $("#widgetgetGUID(); ?>").load("pg/view/getGUID(); ?>?shell=no&username=username; ?>&context="); + var variables = $("#widgetform").serialize(); + $.post($("#widgetform").attr("action"),variables,function() { + $("#widget").load("pg/view/?shell=no&username=username; ?>&context="); }); return false; -- cgit v1.2.3