From 02bfa4273603e200509f910c265d20e0ca5550b0 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 3 Nov 2014 16:52:17 -0700 Subject: [PATCH 1/3] List events fired in the navigation --- config/jsdoc/api/template/tmpl/navigation.tmpl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/config/jsdoc/api/template/tmpl/navigation.tmpl b/config/jsdoc/api/template/tmpl/navigation.tmpl index fc69e8e64c..bf2a26bf5e 100644 --- a/config/jsdoc/api/template/tmpl/navigation.tmpl +++ b/config/jsdoc/api/template/tmpl/navigation.tmpl @@ -64,6 +64,23 @@ var self = this; } ?> + From 1d221f816621ed8e031b24ab26969ed447441699 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Tue, 4 Nov 2014 21:50:22 +0100 Subject: [PATCH 2/3] 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]}; ?> -
  • +
  • Date: Thu, 6 Nov 2014 10:42:40 -0700 Subject: [PATCH 3/3] Use toggleClass instead of addClass and removeClass --- 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 b6130981f9..9a368453c6 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[this.checked ? 'addClass' : 'removeClass']('hidden'); + unstable.toggleClass('hidden', this.checked); return false; }); - unstable[stabilityToggle[0].checked ? 'addClass' : 'removeClass']('hidden'); + unstable.toggleClass('hidden', stabilityToggle[0].checked); });