mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Fix adding releases to download basket
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
2018-05-17 DariusIII
|
||||
* Fix: Fix adding releases to download basket
|
||||
* Chg: Remove Gamma theme related assets as the theme is not used anymore
|
||||
* Chg: Rename XBOX 360 DLC to Xbox 360 DLC to be consistent with rest of the categories
|
||||
* Fix: Fix XXX and Full XXX movie view
|
||||
|
||||
@@ -36,6 +36,7 @@ class CartController extends BasePageController
|
||||
|
||||
/**
|
||||
* @param \Illuminate\Http\Request $request
|
||||
*
|
||||
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
|
||||
* @throws \Exception
|
||||
*/
|
||||
@@ -54,7 +55,7 @@ class CartController extends BasePageController
|
||||
UsersRelease::addCart(Auth::id(), $d['id']);
|
||||
}
|
||||
|
||||
return redirect('/cart/index');
|
||||
//return redirect('/cart/index');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -21,6 +21,7 @@ jQuery(function($){
|
||||
$('.cartadd').click(function(e){
|
||||
if ($(this).hasClass('icon_cart_clicked')) return false;
|
||||
var guid = $(".guid").attr('id').substring(4);
|
||||
alert(guid);
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
@@ -231,6 +232,8 @@ jQuery(function($){
|
||||
$('.icon_cart').click(function(e){
|
||||
if ($(this).hasClass('icon_cart_clicked')) return false;
|
||||
var guid = $(this).attr('id').substring(4);
|
||||
//alert(guid);
|
||||
//alert(SERVERROOT + "/cart/add?id=" + guid);
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
@@ -548,7 +551,7 @@ jQuery(function($){
|
||||
$(this).attr('checked', false);
|
||||
});
|
||||
var guidstring = guids.toString();
|
||||
// alert (guidstring); // This is just for testing shit
|
||||
//alert (guidstring); // This is just for testing shit
|
||||
$.post( SERVERROOT + "/cart/add?id=" + guidstring);
|
||||
}));
|
||||
$('button.nzb_multi_operations_sab').on('click', (function(){
|
||||
|
||||
Reference in New Issue
Block a user