'); $('.warning').fadeIn('slow'); } for (i in json['error']) { $('#option-' + i).after('' + json['error'][i] + ''); } } if (json['success']) { $('#notification').html(''); $('.success').fadeIn('slow'); $('#cart_total').html(json['total']); $('html, body').animate({ scrollTop: 0 }, 'slow'); } } }); }); //-->
'); }, complete: function() { $('#button-comment').attr('disabled', false); $('.attention').remove(); }, success: function(data) { if (data.error) { $('#comment-title').after('
' + data.error + '
'); } if (data.success) { $('#comment-title').after('
' + data.success + '
'); $('#comment').load('index.php?route=record/record/comment&record_id=108'); $('.comment_count').html(data.comment_count); $('input[name=\'name\']').val(data.login); $('textarea[name=\'text\']').val(''); $('input[name=\'rating\']:checked').attr('checked', ''); $('input[name=\'captcha\']').val(''); } } }); }); //-->