From 1d221f816621ed8e031b24ab26969ed447441699 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Tue, 4 Nov 2014 21:50:22 +0100 Subject: [PATCH] Add ability to filter out unstable Fires items --- config/jsdoc/api/template/static/scripts/main.js | 4 ++-- config/jsdoc/api/template/static/styles/jaguar.css | 2 +- config/jsdoc/api/template/tmpl/navigation.tmpl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/jsdoc/api/template/static/scripts/main.js b/config/jsdoc/api/template/static/scripts/main.js index 84f6ffb542..b6130981f9 100644 --- a/config/jsdoc/api/template/static/scripts/main.js +++ b/config/jsdoc/api/template/static/scripts/main.js @@ -57,8 +57,8 @@ $(function () { var unstable = $('.unstable'); var stabilityToggle = $('#stability-toggle'); stabilityToggle.change(function() { - unstable.toggle(!this.checked); + unstable[this.checked ? 'addClass' : 'removeClass']('hidden'); return false; }); - unstable.toggle(!stabilityToggle[0].checked); + unstable[stabilityToggle[0].checked ? 'addClass' : 'removeClass']('hidden'); }); diff --git a/config/jsdoc/api/template/static/styles/jaguar.css b/config/jsdoc/api/template/static/styles/jaguar.css index c3f55f84b7..b44fadeff4 100644 --- a/config/jsdoc/api/template/static/styles/jaguar.css +++ b/config/jsdoc/api/template/static/styles/jaguar.css @@ -372,7 +372,7 @@ footer { .main .readme table ul li { margin-bottom: 0; } -.unstable { +.hidden { display: none; } #stability { diff --git a/config/jsdoc/api/template/tmpl/navigation.tmpl b/config/jsdoc/api/template/tmpl/navigation.tmpl index bf2a26bf5e..7a41bfed9b 100644 --- a/config/jsdoc/api/template/tmpl/navigation.tmpl +++ b/config/jsdoc/api/template/tmpl/navigation.tmpl @@ -73,7 +73,7 @@ var self = this; item.fires.forEach(function (v) { v = self.find({longname: v})[0] || {longname: v, name: v.split(/#?event:/)[1]}; ?> -
  • +