From b8b60df391637ff21bb79ba64f820749ef324ee9 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 16 Nov 2008 07:07:16 +0000 Subject: Rename gLogin -> gLoginForm This disambiguates forms from blocks (for example in the comment module we were calling both the form and block gComments). --- modules/user/controllers/login.php | 2 +- themes/default/js/user.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/user/controllers/login.php b/modules/user/controllers/login.php index 63548a4c..36b79376 100644 --- a/modules/user/controllers/login.php +++ b/modules/user/controllers/login.php @@ -19,7 +19,7 @@ */ class Login_Controller extends Controller { public function index() { - $form = new Forge(url::current(true), "", "post", array("id" => "gLogin")); + $form = new Forge(url::current(true), "", "post", array("id" => "gLoginForm")); $group = $form->group(_("Login")); $group->input("name")->label(_("Name"))->id("gName")->class(null); $group->password("password")->label(_("Password"))->id("gPassword")->class(null); diff --git a/themes/default/js/user.js b/themes/default/js/user.js index fb203229..33aeaa60 100644 --- a/themes/default/js/user.js +++ b/themes/default/js/user.js @@ -9,7 +9,7 @@ function show_login(url) { function ajaxify_login_form() { $("#gLoginMenu form ul").addClass("gInline"); - $("form#gLogin").ajaxForm({ + $("form#gLoginForm").ajaxForm({ target: "#gLoginFormContainer", success: function(responseText, statusText) { if (!responseText) { @@ -22,7 +22,7 @@ function ajaxify_login_form() { } function close_login() { - $("#gLogin").remove(); + $("#gLoginForm").remove(); $("#gLoginClose").hide(); $("#gLoginLink").show(); $("input#gUsername").val(""); -- cgit v1.2.3