Skip to content

Commit e67aa7e

Browse files
author
Rafael Grigorian
committed
Fixed GH-78
1 parent 7ca39b0 commit e67aa7e

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

package.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package>
33
<date>2018-06-27</date>
4-
<time>12:20:33</time>
4+
<time>12:37:59</time>
55
<version>1.0.0</version>
66
<contents>
77
<target name="magecommunity">
@@ -38,16 +38,16 @@
3838
<dir name="SslController.php" hash="65ed76a240167c40d809f29ed86ac338"/>
3939
<dir name="Tls13Controller.php" hash="704c46bf4db3037e4a81686ef776f94e"/>
4040
</dir>
41-
<dir name="Dns">
42-
<dir name="CloudflareNameserversController.php" hash="de0dbecb4baf89d7c5ce37f0dae8f7ad"/>
43-
<dir name="DnsRecordsController.php" hash="966b3a5e42f6b79898edbd183fa32461"/>
44-
</dir>
4541
<dir name="Firewall">
4642
<dir name="AccessRulesController.php" hash="f2454cfe250cacf1a171055a4ad5ad0d"/>
4743
<dir name="ChallengePassageController.php" hash="8ed38de3c3b0fad63d7849df32e2249f"/>
4844
<dir name="SecurityLevelController.php" hash="a98061a3e73f53ce4f80acf6048c27ac"/>
4945
<dir name="UserAgentBlockingController.php" hash="56e88562fddc5e49f68758ea9b7bf4c4"/>
5046
</dir>
47+
<dir name="Dns">
48+
<dir name="CloudflareNameserversController.php" hash="de0dbecb4baf89d7c5ce37f0dae8f7ad"/>
49+
<dir name="DnsRecordsController.php" hash="966b3a5e42f6b79898edbd183fa32461"/>
50+
</dir>
5151
<dir name="Network">
5252
<dir name="Http2Controller.php" hash="825798572e555bab0c787e50fecc1e23"/>
5353
<dir name="IpGeolocationController.php" hash="a9a4e8f065afa5f3e814bf04f03e86a7"/>
@@ -114,16 +114,16 @@
114114
<dir name="Ssl.php" hash="3fe60a7b6046edce68a35fcdee460557"/>
115115
<dir name="Tls13.php" hash="cfb2536708367ca4abfa4eed2e6a336c"/>
116116
</dir>
117-
<dir name="Dns">
118-
<dir name="CloudflareNameservers.php" hash="c00d418680fae6c13ab9d9716598dbb1"/>
119-
<dir name="DnsRecords.php" hash="bede95054d21264ac29df86e0ce7001c"/>
120-
</dir>
121117
<dir name="Firewall">
122118
<dir name="AccessRules.php" hash="2c80be81aaba7cf6dfd3e76a30494aad"/>
123119
<dir name="ChallengePassage.php" hash="0b5dbe0180dc1d1c939d634fb8a23489"/>
124120
<dir name="SecurityLevel.php" hash="c3fb6cfdc39d5a6b4532b83f96361b26"/>
125121
<dir name="UserAgentBlocking.php" hash="19cf8af7fa8e86d4ab2c5d01c8758abb"/>
126122
</dir>
123+
<dir name="Dns">
124+
<dir name="CloudflareNameservers.php" hash="c00d418680fae6c13ab9d9716598dbb1"/>
125+
<dir name="DnsRecords.php" hash="bede95054d21264ac29df86e0ce7001c"/>
126+
</dir>
127127
<dir name="Network">
128128
<dir name="Http2.php" hash="587d2f1a8ace15fe27ca819ccefe981e"/>
129129
<dir name="IpGeolocation.php" hash="9a672f24cbc47de0d9744e723440744c"/>
@@ -210,17 +210,17 @@
210210
<dir name="unmetered_ddos_mitigation.phtml" hash="6d99ade15e13f3313895727a92990766"/>
211211
<dir name="user_agent_blocking.phtml" hash="6b3ba0e45372ad6fcd1e86a9bd5bed20"/>
212212
</dir>
213+
<dir name="overview">
214+
<dir name="configuration.phtml" hash="81ede666fa4600f423cd22c83e34d8c6"/>
215+
<dir name="status.phtml" hash="92cc62f829f7c7b40d35f2ff28c3b8c1"/>
216+
</dir>
213217
<dir name="network">
214218
<dir name="http_2.phtml" hash="5f272ae4b07271133cfcdc0ef76b5646"/>
215219
<dir name="ip_geolocation.phtml" hash="146be9115a765350e8cf1f6354439fc9"/>
216220
<dir name="ipv6_compatibility.phtml" hash="21b53264707f65dccdaaaae52a46c206"/>
217221
<dir name="pseudo_ipv4.phtml" hash="6df6335992a7dea7ad4c3f219d6b9bfc"/>
218222
<dir name="websockets.phtml" hash="fc21aa4fd5199dbd8c5c6bc8b29fead0"/>
219223
</dir>
220-
<dir name="overview">
221-
<dir name="configuration.phtml" hash="81ede666fa4600f423cd22c83e34d8c6"/>
222-
<dir name="status.phtml" hash="92cc62f829f7c7b40d35f2ff28c3b8c1"/>
223-
</dir>
224224
<dir name="page_rules">
225225
<dir name="page_rules.phtml" hash="f1acf8f423b307480de99b86a1fdc1a7"/>
226226
</dir>
@@ -271,7 +271,7 @@
271271
</dir>
272272
<dir name="js">
273273
<dir name="cloudflare">
274-
<dir name="bundle.min.js" hash="61963a67431324f6ecb8c5a499596b36"/>
274+
<dir name="bundle.min.js" hash="88398f72f3b0d8f4e5d5277324636f24"/>
275275
</dir>
276276
</dir>
277277
</dir>

src/skin/adminhtml/base/default/js/cloudflare/generic/select.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const $ = require ("jquery")
2+
const cloudflare = require ("cloudflare/common")
23
const notification = require ("cloudflare/core/notification")
34

45
function initialize ( event, data ) {
@@ -15,7 +16,13 @@ function update ( event, data ) {
1516
data: { "form_key": data.form.key, "value": value },
1617
success: ( response ) => {
1718
notification.showMessages ( response )
18-
$(data.section).removeClass ("loading")
19+
if ( response.success ) {
20+
$(data.section).removeClass ("loading")
21+
}
22+
else {
23+
let targetSection = `${data.target.tab}.${data.target.section}`
24+
cloudflare.loadSections (`.cloudflare.${targetSection}`)
25+
}
1926
}
2027
})
2128
}

0 commit comments

Comments
 (0)