diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-29 09:22:32 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-07-31 15:44:56 -0700 |
commit | a6280641f53391dd57b3760ac882c3219e0cee6e (patch) | |
tree | 8f2bfa4ddf637b5e8523a2fa67b09e4b4bbf7d42 /modules/gallery/controllers/login.php | |
parent | a6ceb927e602dd693b011a17e625cc9c87d57d69 (diff) |
Resend the entire dialog content (including the wrapping view) instead of just the form.
Diffstat (limited to 'modules/gallery/controllers/login.php')
-rw-r--r-- | modules/gallery/controllers/login.php | 4 |
1 files changed, 3 insertions, 1 deletions
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)); } } |