app/assets/javascripts/spree/backend/progress.js in spree_backend-4.3.3 vs app/assets/javascripts/spree/backend/progress.js in spree_backend-4.4.0.rc1
- old
+ new
@@ -1,8 +1,10 @@
-$(function () {
+document.addEventListener("spree:load", function() {
$(document).ajaxStart(function () {
- $('#progress').stop(true, true).fadeIn()
+ Turbo.navigator.delegate.adapter.progressBar.setValue(0)
+ Turbo.navigator.delegate.adapter.progressBar.show()
})
$(document).ajaxStop(function () {
- $('#progress').fadeOut()
+ Turbo.navigator.delegate.adapter.progressBar.setValue(1)
+ Turbo.navigator.delegate.adapter.progressBar.hide()
})
})