diff --git a/etc/status/README.rst b/etc/status/README.rst index 5b4a6bb104..762b49ce42 100644 --- a/etc/status/README.rst +++ b/etc/status/README.rst @@ -19,8 +19,8 @@ The script depends on jQuery (tested with version 1.8 and 1.9). The script optimises updates by stopping when the page is not visible. This is done by listerning to ``show`` and ``hide`` events emitted by the Page Visibility plugin for jQuery. If you don't want to load this plugin you -can undo undo this optimisation by removing the 9 lines using this on the -bottom of ``app.js`` +can undo undo this optimisation by removing the code at the bottom of +``index.html`` To automatically fetch the latest versions of jQuery, the Page Visibility plugin and Twitter Boostrap, run the ``fetch-dependencies.sh`` script. diff --git a/etc/status/fetch-dependencies.sh b/etc/status/fetch-dependencies.sh index 7823f29088..4868310ad6 100755 --- a/etc/status/fetch-dependencies.sh +++ b/etc/status/fetch-dependencies.sh @@ -6,7 +6,7 @@ echo "Fetching jquery.min.js..." curl --silent http://code.jquery.com/jquery.min.js > $BASE_DIR/public_html/jquery.min.js echo "Fetching jquery-visibility.min.js..." -curl --silent https://raw.github.com/mathiasbynens/jquery-visibility/master/jquery-visibility.min.js > $BASE_DIR/public_html/jquery-visibility.min.js +curl --silent https://raw.githubusercontent.com/mathiasbynens/jquery-visibility/master/jquery-visibility.js > $BASE_DIR/public_html/jquery-visibility.min.js echo "Fetching jquery.graphite.js..." curl -L --silent https://github.com/prestontimmons/graphitejs/archive/master.zip > jquery-graphite.zip diff --git a/etc/status/public_html/jquery.zuul.js b/etc/status/public_html/jquery.zuul.js index 9a3c1fa259..01f8bd35f1 100644 --- a/etc/status/public_html/jquery.zuul.js +++ b/etc/status/public_html/jquery.zuul.js @@ -663,8 +663,10 @@ ); }) .fail(function (err, jqXHR, errMsg) { - $msg.text(source + ': ' + errMsg).show(); - $msg.removeClass('zuul-msg-wrap-off'); + $msg.text(options.source + ': ' + errMsg) + .addClass('alert-danger') + .removeClass('zuul-msg-wrap-off') + .show(); }) .complete(function () { xhr = undefined;