From 3576f8b79313cdf78c92fce600543c35568c9c65 Mon Sep 17 00:00:00 2001 From: vmalaret Date: Mon, 30 Mar 2015 10:37:50 +0200 Subject: [PATCH 1/2] Stable Only unchecked by default in docs. Having it on by default makes it difficult for new users to find commonly used functionality. --- config/jsdoc/api/template/static/scripts/main.js | 4 ++-- config/jsdoc/api/template/tmpl/layout.tmpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/jsdoc/api/template/static/scripts/main.js b/config/jsdoc/api/template/static/scripts/main.js index f08f17ac67..f050997bf1 100644 --- a/config/jsdoc/api/template/static/scripts/main.js +++ b/config/jsdoc/api/template/static/scripts/main.js @@ -74,7 +74,7 @@ $(function () { var stabilityToggle = $('#stability-toggle'); stabilityToggle.change(function() { unstable.toggleClass('hidden', this.checked); - var search = this.checked ? '' : '?unstable=true'; + var search = this.checked ? '?stable=true' : ''; links.each(function(i, el) { this.href = this.pathname + search + this.hash; }); @@ -88,6 +88,6 @@ $(function () { links.each(function(i, el) { this.href = this.pathname + search + this.hash; }); - stabilityToggle.prop('checked', search !== '?unstable=true'); + stabilityToggle.prop('checked', search === '?stable=true'); unstable.toggleClass('hidden', stabilityToggle[0].checked); }); diff --git a/config/jsdoc/api/template/tmpl/layout.tmpl b/config/jsdoc/api/template/tmpl/layout.tmpl index 5e1789e190..243743e719 100644 --- a/config/jsdoc/api/template/tmpl/layout.tmpl +++ b/config/jsdoc/api/template/tmpl/layout.tmpl @@ -21,7 +21,7 @@ OpenLayers 3 API Documentation From 4daf08ec1d83e205516c613ecab1a73854c88006 Mon Sep 17 00:00:00 2001 From: vmalaret Date: Wed, 1 Apr 2015 09:26:17 +0200 Subject: [PATCH 2/2] Rename flag to 'stableonly' --- config/jsdoc/api/template/static/scripts/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/jsdoc/api/template/static/scripts/main.js b/config/jsdoc/api/template/static/scripts/main.js index f050997bf1..30113d8f64 100644 --- a/config/jsdoc/api/template/static/scripts/main.js +++ b/config/jsdoc/api/template/static/scripts/main.js @@ -74,7 +74,7 @@ $(function () { var stabilityToggle = $('#stability-toggle'); stabilityToggle.change(function() { unstable.toggleClass('hidden', this.checked); - var search = this.checked ? '?stable=true' : ''; + var search = this.checked ? '?stableonly=true' : ''; links.each(function(i, el) { this.href = this.pathname + search + this.hash; }); @@ -88,6 +88,6 @@ $(function () { links.each(function(i, el) { this.href = this.pathname + search + this.hash; }); - stabilityToggle.prop('checked', search === '?stable=true'); + stabilityToggle.prop('checked', search === '?stableonly=true'); unstable.toggleClass('hidden', stabilityToggle[0].checked); });