0

I am adding the custom price to order total, its fine adding the price.but the page loading is still loading, how can i stop loading using knockout js. Thanks in advance

i have this code in my knockout file js

 return storage.delete(
                url,
                false
            ).done(
                function () {
                    var deferred = $.Deferred();
                    isApplied();
                    totals.isLoading(true);
                    getPaymentInformationAction(deferred);
                    $.when(deferred).done(function () {
                        totals.isLoading(false);
                        isLoading(false);
                    });
                    messageContainer.addSuccessMessage({
                        'message': message
                    });
                }
            ).fail(
                function (response) {
                    isLoading(false);
                    totals.isLoading(false);
                    errorProcessor.process(response, messageContainer);
                }
            ).always(
                function () {
                    isLoading(false);
                }
            );
  • Please add your code lines. – Khoa TruongDinh Dec 7 '17 at 4:45
  • I have add my code please check @KhoaTruongDinh – Learing_Coder Dec 7 '17 at 4:56

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.