From a6280641f53391dd57b3760ac882c3219e0cee6e Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 29 Jul 2010 09:22:32 -0700 Subject: Resend the entire dialog content (including the wrapping view) instead of just the form. --- modules/gallery/controllers/login.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/gallery/controllers/login.php') diff --git a/modules/gallery/controllers/login.php b/modules/gallery/controllers/login.php index 3454a245..d7ab399f 100644 --- a/modules/gallery/controllers/login.php +++ b/modules/gallery/controllers/login.php @@ -32,7 +32,9 @@ class Login_Controller extends Controller { if ($valid) { json::reply(array("result" => "success")); } else { - json::reply(array("result" => "error", "form" => (string) $form)); + $view = new View("login_ajax.html"); + $view->form = $form; + json::reply(array("result" => "error", "form" => (string) $view)); } } -- cgit v1.2.3