diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2018-12-20 18:19:35 +0100 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2018-12-21 20:17:05 +0100 |
| commit | bffe8bad0f1e22a7d58b691e0023efebc9b8db8e (patch) | |
| tree | 8b9bc36e0a7d75eeee8e78fc6efd3efc57c4b04c | |
| parent | 3b46b42b16aca6362b70010c286ff3244d50354a (diff) | |
| download | wiki-bffe8bad0f1e22a7d58b691e0023efebc9b8db8e.tar.gz wiki-bffe8bad0f1e22a7d58b691e0023efebc9b8db8e.tar.bz2 wiki-bffe8bad0f1e22a7d58b691e0023efebc9b8db8e.zip | |
update
| -rw-r--r-- | assets/js/red-links.js | 4 |
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', ''); } } |
