Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Let's try that, javascript >:x

  • Loading branch information...
commit 09bde259dfc2508ad773bd41d6b8fa0ff762ba9a 1 parent e9584d0
@ericholscher ericholscher authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 media/javascript/rtd.js
View
6 media/javascript/rtd.js
@@ -12,8 +12,10 @@ warning = '<div class="admonition note"> <p class="first admonition-title">Note<
function checkVersion() {
// doc_slug and doc_version MUST be defined or else the error prevents
// Firefox from using any jQuery
- doc_slug = doc_slug || ""
- doc_version = doc_version || ""
+ if (typeof doc_slug === 'undefined')
+ doc_slug = ""
+ if (typeof doc_version === 'undefined')
+ doc_version = ""
$.ajax({
type: 'GET',
url: "http://readthedocs.org/api/v1/version/" + doc_slug + "/highest/" + doc_version + "/",
Please sign in to comment.
Something went wrong with that request. Please try again.