Fix adding releases to download basket

This commit is contained in:
DariusIII
2018-05-17 15:22:15 +02:00
parent f70f355897
commit e33bd0a4cd
3 changed files with 7 additions and 2 deletions
+1
View File
@@ -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
+2 -1
View File
@@ -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');
}
/**
+4 -1
View File
@@ -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(){