This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

leocavalcante
leocavalcante

It is tied to [data-request] and does not work when using $.request.

leocavalcante
leocavalcante

"Workaround" it to the stuff by yourself:

$.oc.stripeLoadIndicator.show()

$.request('onButtonClick', {
    data: {val: props.value},
    success: props.onNewResult,
    complete: () => $.oc.stripeLoadIndicator.hide(),
})
assistenza33089
assistenza33089

You can use "loading" attribute:

$.request('onLoadFLipbook', {
            loading: $.oc.stripeLoadIndicator,
            success: function (data) {
                $('#flipbook').html(data.partial);
                const book = document.getElementById('book');
                const module = prepareFlipbook(data.aspectWidth, data.aspectHeight);
                module.init('book');
            }
        });

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.