امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
EDIT: Moved to proper forum
On my dev site I have a template with two forms and JS. The second form does a redirect after the form submits and some ajax stuff happens
Code:
Everything works as it...
Read more
On my dev site I have a template with two forms and JS. The second form does a redirect after the form submits and some ajax stuff happens
Code:
کد:
$(document).on('ajax:complete', function(event, xhr, settings){
var parts = jQuery.parseJSON(xhr.responseText);
if(parts['status'] != 'ok'){
if('cartUrl' in parts){
window.location.href = '/store/cart.php?target=cart&action=add&product_id='+parts['cartUrl'];
Everything works as it...
Read more
