Add buttons for functions in posterwall.

This commit is contained in:
Darko
2015-07-24 13:59:19 +02:00
parent fa02108be8
commit 1f006e53d3
5 changed files with 28 additions and 25 deletions
+7 -7
View File
@@ -68,7 +68,7 @@ jQuery(function($){
if ($(this).hasClass('icon_cart_clicked')) return false;
var guid = $(this).parent().parent().attr('id').substring(4);
$.post( SERVERROOT + "cart?add=" + guid, function(resp){
$(e.target).addClass('icon_cart_clicked').attr('title','Added to Cart');
$(e.target).addClass('icon_cart_clicked').attr('title',' Release added to Cart');
cart_notify();
});
return false;
@@ -201,8 +201,8 @@ jQuery(function($){
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
$.post(nzburl, function(resp){
$(e.target).addClass('icon_sab_clicked').attr('title','Added to Queue');
notify('NZB added to queue', 'top');
$(e.target).addClass('icon_sab_clicked').attr('title','Release added to Queue');
notify('Release added to queue', 'topCenter');
});
return false;
});
@@ -215,7 +215,7 @@ jQuery(function($){
$.post(nzburl, function(resp){
$(e.target).addClass('icon_nzbget_clicked').attr('title','Added to Queue');
notify('NZB added to queue', 'top');
notify('Release added to queue', 'topCenter');
});
return false;
});
@@ -311,7 +311,7 @@ jQuery(function($){
// alert(nzburl);
$.post( nzburl, function(resp){
$sabIcon.addClass('icon_sab_clicked').attr('title','Added to Queue');
notify('NZB added to queue', 'top');
notify('Release added to queue', 'topCenter');
});
}
$(this).attr('checked', false);
@@ -325,7 +325,7 @@ jQuery(function($){
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
$.post( nzburl, function(resp){
$nzbgetIcon.addClass('icon_nzbget_clicked').attr('title','Added to Queue');
notify('NZB added to queue', 'top');
notify('Release added to queue', 'topCenter');
});
}
$(this).attr('checked', false);
@@ -394,7 +394,7 @@ jQuery(function($){
var guid = $(row).val();
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
$.post( nzburl, function(resp){
notify('NZB added to queue', 'top');
notify('Release added to queue', 'topCenter');
});
});
});
@@ -66,14 +66,14 @@
</a>
</div>
<div class="rating-pod" id="guid{$result.guid}">
<div class="icons divlink displ">
<span class="icon_nzb text-muted"><a title="Download Nzb"
href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}/{$result.searchname|escape:"htmlall"}">
<div class="icons divlink col-lg-4">
<span class="btn btn-hover btn-default btn-sm icon_nzb text-muted"><a title="Download Nzb"
href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}/{$result.searchname|escape:"htmlall"}">
<i class="glyphicon glyphicon-download"></i></a>
</span>
<span class="icon_cart text-muted" title="Add to Cart"><i class="glyphicon glyphicon-shopping-cart"></i></span>
<span class="btn btn-hover btn-default btn-sm icon_cart text-muted" title="Add to Cart"><i class="glyphicon glyphicon-shopping-cart"></i></span>
{if isset($sabintegrated)}
<span class="icon_sab text-muted" title="Send to my Queue"><i class="glyphicon glyphicon-send"></i></span>
<span class="btn btn-hover btn-default btn-sm icon_sab text-muted" title="Send to my Queue"><i class="glyphicon glyphicon-send"></i></span>
{/if}
</div>
</div>
+7 -7
View File
@@ -68,7 +68,7 @@ jQuery(function($){
if ($(this).hasClass('icon_cart_clicked')) return false;
var guid = $(this).parent().parent().attr('id').substring(4);
$.post( SERVERROOT + "cart?add=" + guid, function(resp){
$(e.target).addClass('icon_cart_clicked').attr('title','Added to Cart');
$(e.target).addClass('icon_cart_clicked').attr('title',' Release added to Cart');
cart_notify();
});
return false;
@@ -201,8 +201,8 @@ jQuery(function($){
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
$.post(nzburl, function(resp){
$(e.target).addClass('icon_sab_clicked').attr('title','Added to Queue');
notify('NZB added to queue', 'top');
$(e.target).addClass('icon_sab_clicked').attr('title','Release added to Queue');
notify('Release added to queue', 'topCenter');
});
return false;
});
@@ -215,7 +215,7 @@ jQuery(function($){
$.post(nzburl, function(resp){
$(e.target).addClass('icon_nzbget_clicked').attr('title','Added to Queue');
notify('NZB added to queue', 'top');
notify('Release added to queue', 'topCenter');
});
return false;
});
@@ -311,7 +311,7 @@ jQuery(function($){
// alert(nzburl);
$.post( nzburl, function(resp){
$sabIcon.addClass('icon_sab_clicked').attr('title','Added to Queue');
notify('NZB added to queue', 'top');
notify('Release added to queue', 'topCenter');
});
}
$(this).attr('checked', false);
@@ -325,7 +325,7 @@ jQuery(function($){
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
$.post( nzburl, function(resp){
$nzbgetIcon.addClass('icon_nzbget_clicked').attr('title','Added to Queue');
notify('NZB added to queue', 'top');
notify('Release added to queue', 'topCenter');
});
}
$(this).attr('checked', false);
@@ -394,7 +394,7 @@ jQuery(function($){
var guid = $(row).val();
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
$.post( nzburl, function(resp){
notify('NZB added to queue', 'top');
notify('Release added to queue', 'topCenter');
});
});
});
@@ -66,14 +66,14 @@
</a>
</div>
<div class="rating-pod" id="guid{$result.guid}">
<div class="icons divlink displ">
<span class="icon_nzb text-muted"><a title="Download Nzb"
<div class="icons divlink col-lg-4">
<span class="btn btn-hover btn-default btn-sm icon_nzb text-muted"><a title="Download Nzb"
href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}/{$result.searchname|escape:"htmlall"}">
<i class="glyphicon glyphicon-download"></i></a>
</span>
<span class="icon_cart text-muted" title="Add to Cart"><i class="glyphicon glyphicon-shopping-cart"></i></span>
<span class="btn btn-hover btn-default btn-sm icon_cart text-muted" title="Add to Cart"><i class="glyphicon glyphicon-shopping-cart"></i></span>
{if isset($sabintegrated)}
<span class="icon_sab text-muted" title="Send to my Queue"><i class="glyphicon glyphicon-send"></i></span>
<span class="btn btn-hover btn-default btn-sm icon_sab text-muted" title="Send to my Queue"><i class="glyphicon glyphicon-send"></i></span>
{/if}
</div>
</div>
+5 -2
View File
@@ -36,8 +36,11 @@ div.icons {
white-space:nowrap;
padding-left:0;
padding-right:0;
width:65px;
margin: 0 auto;
width:100%;
margin: auto;
display:inline-block;
vertical-align: middle;
align-items: center;
}
a.divlink {