summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/js/red-links.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/red-links.js b/assets/js/red-links.js
index 408af0b..1b7b94b 100644
--- a/assets/js/red-links.js
+++ b/assets/js/red-links.js
@@ -12,7 +12,7 @@
var ext = this.href.split('.').pop().split(/\#|\?/)[0];
if (ext != "html")
- this.css('color', 'red'); // pessimistic condition
+ $(this).css('color', 'red'); // pessimistic condition
var that = this;
$.ajax({
@@ -24,7 +24,7 @@
error: function (xhr, ajaxOptions, thrownError) {
if (xhr.status == 404) {
$(that).css('color', 'red');
- } else (xhr.status == 200) {
+ } else if (xhr.status == 200) {
$(that).css('color', '');
}
}