summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-10-16 00:56:37 -0600
committerTim Almdal <tnalmdal@shaw.ca>2009-10-16 08:50:58 -0700
commit9ce46c1df60de90e1386acf313b05213795897eb (patch)
treeb55e088542d70adb4f37eb7936169d058c0fb389
parent9693f703ecc4994362c3d484ba5bbf6b3a9941e3 (diff)
Apply g-dialog-link class directly to login link markup, not via jQuery.
-rw-r--r--modules/gallery/views/login.html.php2
-rw-r--r--themes/wind/js/ui.init.js1
2 files changed, 1 insertions, 2 deletions
diff --git a/modules/gallery/views/login.html.php b/modules/gallery/views/login.html.php
index fa6308ae..5256f1ac 100644
--- a/modules/gallery/views/login.html.php
+++ b/modules/gallery/views/login.html.php
@@ -4,7 +4,7 @@
<li class="first">
<a href="<?= url::site("login/ajax") ?>"
title="<?= t("Login to Gallery")->for_html_attr() ?>"
- id="g-login-link"><?= t("Login") ?></a>
+ id="g-login-link" class="g-dialog-link"><?= t("Login") ?></a>
</li>
<? else: ?>
<li class="first">
diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js
index f45ba84a..e9dd1dd9 100644
--- a/themes/wind/js/ui.init.js
+++ b/themes/wind/js/ui.init.js
@@ -20,7 +20,6 @@ $(document).ready(function() {
$("#g-action-status li").gallery_show_message();
// Initialize dialogs
- $("#g-login-link").addClass("g-dialog-link");
$(".g-dialog-link").gallery_dialog();
// Apply jQuery UI icon, hover, and rounded corner styles