summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2018-12-20 18:19:35 +0100
committerYehonal <yehonal.azeroth@gmail.com>2018-12-21 20:17:05 +0100
commitbffe8bad0f1e22a7d58b691e0023efebc9b8db8e (patch)
tree8b9bc36e0a7d75eeee8e78fc6efd3efc57c4b04c
parent3b46b42b16aca6362b70010c286ff3244d50354a (diff)
downloadwiki-bffe8bad0f1e22a7d58b691e0023efebc9b8db8e.tar.gz
wiki-bffe8bad0f1e22a7d58b691e0023efebc9b8db8e.tar.bz2
wiki-bffe8bad0f1e22a7d58b691e0023efebc9b8db8e.zip
update
-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', '');
}
}