bfdotcom-theme 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/comments.html +10 -9
- data/assets/scripts/core.js +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c9a2745fbf4f168367931a426ee5c85714b4e7837f01ec62826361dfaf6466e
|
4
|
+
data.tar.gz: 83a2166c2c5744512023c58d9dd4036264f6a79cac43d42592f91c6aa37f8c5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 254a14db5a291d20a322816b4d066d49163b5c5f71acea9540840d397069c64ef61f67988eb0ce4a945b3c4594526965ac9f0a6c80339c7f7344cee2eee6d406
|
7
|
+
data.tar.gz: ef1804eb6c74a0390f5bc63f8199e2dc60b1adfc00144b34f53481d5843d0a39edbfd5b748b3f4b41d07a860dd69f97e43c51226d11b35aec09b3f0c5f195fc8
|
data/_includes/comments.html
CHANGED
@@ -19,16 +19,17 @@
|
|
19
19
|
<textarea class="form-control" id="commentText" rows="3"></textarea>
|
20
20
|
</div>
|
21
21
|
<button type="button" class="btn btn-outline-info" id="submitButton" onclick="submitComment()">Add your comment</button>
|
22
|
+
<div class="spinner-border" role="status" id="submittingComment">
|
23
|
+
<span class="sr-only">Submitting comment...</span>
|
24
|
+
</div>
|
25
|
+
<div class="alert alert-success" role="alert" id="commentSuccess">
|
26
|
+
Your comment has been submitted - it will appear here after it has been approved.
|
27
|
+
</div>
|
28
|
+
<div class="alert alert-danger" role="alert" id="commentError">
|
29
|
+
There was an error submitting your comment, sorry!
|
30
|
+
</div>
|
22
31
|
</div>
|
23
|
-
|
24
|
-
<span class="sr-only">Submitting comment...</span>
|
25
|
-
</div>
|
26
|
-
<div class="alert alert-success" role="alert" id="commentSuccess">
|
27
|
-
Your comment has been submitted - it will appear here after it has been approved.
|
28
|
-
</div>
|
29
|
-
<div class="alert alert-danger" role="alert" id="commentError">
|
30
|
-
There was an error submitting your comment, sorry!
|
31
|
-
</div>
|
32
|
+
|
32
33
|
</div>
|
33
34
|
|
34
35
|
{%- if comments_size > 0 -%}
|
data/assets/scripts/core.js
CHANGED
@@ -178,7 +178,7 @@ function submitComment() {
|
|
178
178
|
"authorEmail": userInfo.email,
|
179
179
|
"postUrl": window.location.pathname,
|
180
180
|
"comment": commentText
|
181
|
-
},
|
181
|
+
}, {})
|
182
182
|
.then(function(result){
|
183
183
|
//This is where you would put a success callback
|
184
184
|
$('#commentSuccess').show()
|