Skip to content

Commit c51c6dd

Browse files
author
Rafael Grigorian
committed
Fixed #22
1 parent de53899 commit c51c6dd

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/app/code/JetRails/Cloudflare/view/adminhtml/web/js/bundle.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12181,7 +12181,7 @@ $(window).on ( "load", function () {
1218112181
oldAjax.apply ( null, arguments )
1218212182
}
1218312183

12184-
cloudflare.loadSections ()
12184+
cloudflare.loadSections (".overview")
1218512185

1218612186
$(".proxied").each ( ( index ) => {
1218712187
$(this).data ( "value", /proxied_on/.test ( $(this).attr ("src") ) )
@@ -12279,6 +12279,8 @@ $(document).on ( "click", ".cloudflare-dashboard ul.tabs li", function () {
1227912279
$(".cloudflare-dashboard .tabs li").removeClass ("selected")
1228012280
$(`.cloudflare-dashboard .content[data-target='${target}']`).addClass ("selected")
1228112281
$(this).addClass ("selected")
12282+
$(`.initialize.${target}`).addClass ("loading")
12283+
cloudflare.loadSections (`.${target}`)
1228212284
})
1228312285

1228412286

src/app/code/JetRails/Cloudflare/view/adminhtml/web/js/bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/code/JetRails/Cloudflare/view/adminhtml/web/js/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $(window).on ( "load", function () {
3939
oldAjax.apply ( null, arguments )
4040
}
4141

42-
cloudflare.loadSections ()
42+
cloudflare.loadSections (".overview")
4343

4444
$(".proxied").each ( ( index ) => {
4545
$(this).data ( "value", /proxied_on/.test ( $(this).attr ("src") ) )
@@ -137,4 +137,6 @@ $(document).on ( "click", ".cloudflare-dashboard ul.tabs li", function () {
137137
$(".cloudflare-dashboard .tabs li").removeClass ("selected")
138138
$(`.cloudflare-dashboard .content[data-target='${target}']`).addClass ("selected")
139139
$(this).addClass ("selected")
140+
$(`.initialize.${target}`).addClass ("loading")
141+
cloudflare.loadSections (`.${target}`)
140142
})

0 commit comments

Comments
 (0)