diff --git a/modules/gallery/views/login.html.php b/modules/gallery/views/login.html.php
index 049ba043..9be218c0 100644
--- a/modules/gallery/views/login.html.php
+++ b/modules/gallery/views/login.html.php
@@ -4,7 +4,7 @@
"
title="= t("Login to Gallery")->for_html_attr() ?>"
- id="g-login-link">= t("Login") ?>
+ id="g-login-link" class="g-dialog-link">= t("Login") ?>
else: ?>
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