mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 04:49:33 -07:00
Changed the way the donate button works for #414
This commit is contained in:
parent
a01e80c600
commit
d8111bcedb
1 changed files with 6 additions and 7 deletions
|
@ -43,7 +43,7 @@
|
||||||
@Html.GetNavbarUrl(Context, "/issues", UI.Layout_Issues, "exclamation", "<span id=\"issueCount\"></span>")
|
@Html.GetNavbarUrl(Context, "/issues", UI.Layout_Issues, "exclamation", "<span id=\"issueCount\"></span>")
|
||||||
@if (Context.CurrentUser.IsAuthenticated()) // TODO replace with IsAdmin
|
@if (Context.CurrentUser.IsAuthenticated()) // TODO replace with IsAdmin
|
||||||
{
|
{
|
||||||
<li><a id="donate" onclick="donateClick('https://www.paypal.me/PlexRequestsNet');"><i class="fa fa-heart" style="color: red"></i> @UI.Layout_Donate</a></li>
|
<li><a id="donate" href="https://www.paypal.me/PlexRequestsNet" target="_blank"><i class="fa fa-heart" style="color: red"></i> @UI.Layout_Donate</a></li>
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
@ -112,12 +112,6 @@
|
||||||
</html>
|
</html>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
function donateClick(url) {
|
|
||||||
ga('send', 'event', 'Navbar', 'Donate', 'Donate Clicked');
|
|
||||||
var redirectWindow = window.open(url, '_blank');
|
|
||||||
redirectWindow.location;
|
|
||||||
}
|
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
var urlBase = '@Html.GetBaseUrl()';
|
var urlBase = '@Html.GetBaseUrl()';
|
||||||
|
@ -179,6 +173,11 @@
|
||||||
// End issue count
|
// End issue count
|
||||||
|
|
||||||
|
|
||||||
|
$('#donate').click(function () {
|
||||||
|
ga('send', 'event', 'Navbar', 'Donate', 'Donate Clicked');
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function scrollToTop() {
|
function scrollToTop() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue