mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-25 17:24:10 -04:00
Apply g-dialog-link class directly to login link markup, not via jQuery.
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user