GX-Bug #64474
geschlossenThe parseJSON Method from jQuery throws errors all over the Shop
100%
Die Methode parseJSON wird jetzt vor der Verwendung überprüft.
Beschreibung
in multiple tickets, there were issues with parsing the response from the ajax request.
Examples:
https://tracker.gambio-server.net/issues/55652
https://tracker.gambio-server.net/issues/63466
This has something too with the parseJSON method from jQuery, the method call itself is unnecessary because the response is already parsed and will throw an error if you try to parse it again.
With the removal of the line
"response = $.parseJSON(response);"
The error is gone.
Checkliste 0/0
Von Julian Heckmann vor mehr als 5 Jahren aktualisiert
It seems like the error is only shown in firefox when the console is closed, but the functionality of the js is still broken in chrome.
After analyzing a little bit with Ronald, it seems that it is a cache issue, because if you have the console open it won't appear.