From d59ace1a61f973bdb11d93119c136f6eb21f95c4 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 11 May 2016 15:46:39 +0200 Subject: [PATCH] Improve code readability with better comments --- config/jsdoc/api/template/static/scripts/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/jsdoc/api/template/static/scripts/main.js b/config/jsdoc/api/template/static/scripts/main.js index 21158ecd74..235266ba20 100644 --- a/config/jsdoc/api/template/static/scripts/main.js +++ b/config/jsdoc/api/template/static/scripts/main.js @@ -53,7 +53,7 @@ $(function () { $(window).on('resize', _onResize); _onResize(); - // create source code links to github + // warn about outdated version var srcLinks = $('div.tag-source'); var location = window.location.href; var branchSearch = location.match(/\/([^\/]*)\/apidoc\//); @@ -70,6 +70,8 @@ $(function () { } } } + + // create source code links to github var version = $('.package-version'); var branch = version.text(); srcLinks.each(function(i, el) {