summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse/js/js.js4
-rw-r--r--gentoobrowse/xslt/base.xslt4
2 files changed, 6 insertions, 2 deletions
diff --git a/gentoobrowse/js/js.js b/gentoobrowse/js/js.js
index 1839f3f..41a7631 100644
--- a/gentoobrowse/js/js.js
+++ b/gentoobrowse/js/js.js
@@ -11,3 +11,7 @@
})
}(window.jQuery);
+function showPopup(id) {
+ $(id).modal('show');
+}
+
diff --git a/gentoobrowse/xslt/base.xslt b/gentoobrowse/xslt/base.xslt
index ce06c5f..f5ec3db 100644
--- a/gentoobrowse/xslt/base.xslt
+++ b/gentoobrowse/xslt/base.xslt
@@ -85,9 +85,9 @@
<li><a accesskey="b" href="/packages">Browse</a></li>
<li><a accesskey="o" href="/packages/popular">Popular</a></li>
<li><a accesskey="u" href="/use">Use</a></li>
- <li><a accesskey="s" onclick="$('#search').modal('show');" rel="nofollow">Search</a></li>
+ <li><a accesskey="s" onclick="showPopup('#search')" rel="nofollow">Search</a></li>
<xsl:if test="not(user)">
- <li><a accesskey="l" onclick="$('#login').modal('show');" rel="nofollow">Login/Sign up</a></li>
+ <li><a accesskey="l" onclick="showPopup('#login')" rel="nofollow">Login/Sign up</a></li>
</xsl:if>
<xsl:if test="user">
<li>