0

I'm trying to create an online or offline refund, but it's not working.

When I hit the "Refund Offline" or "Refund" button, it scrolls a little bit to the top and stays like this. No AJAX call, no form submit ... nothing.

I found this method, but I don't know exactly where that triggerHandler('save') is performed. Also, that comment is strange (Temporary solution will be replaced after refactoring order functionality).

submitCreditMemoOffline = function() {
    var creditMemoOffline = jQuery('#creditmemo_do_offline');
    if (creditMemoOffline.length) {
        creditMemoOffline.prop('value', 1);
    }
    // Temporary solution will be replaced after refactoring order functionality
    jQuery('#edit_form').triggerHandler('save');
};

Can you help me with an idea? What's the issue?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.