diff --git a/Changelog b/Changelog index bf982b364..752eea9a5 100755 --- a/Changelog +++ b/Changelog @@ -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 diff --git a/app/Http/Controllers/CartController.php b/app/Http/Controllers/CartController.php index d24a23f75..e87c6479e 100644 --- a/app/Http/Controllers/CartController.php +++ b/app/Http/Controllers/CartController.php @@ -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'); } /** diff --git a/public/assets/js/functions.js b/public/assets/js/functions.js index b84028c34..57fbef040 100755 --- a/public/assets/js/functions.js +++ b/public/assets/js/functions.js @@ -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(){