From 03660c4e5656970af6049512d385a738d3c35cdd Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Sun, 2 Jan 2011 21:55:41 -0500 Subject: [PATCH] docs : tweaks --- _includes/element-partial.html | 2 +- _includes/option-buttons.js | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/_includes/element-partial.html b/_includes/element-partial.html index 36a68b3..8dd54ad 100644 --- a/_includes/element-partial.html +++ b/_includes/element-partial.html @@ -2,6 +2,6 @@

{{ element.number }}

{{ element.symbol }}

-

{{ element.name }} {{ w_class }}

+

{{ element.name }}

{{ element.weight }}

\ No newline at end of file diff --git a/_includes/option-buttons.js b/_includes/option-buttons.js index d710e07..f4e01b0 100644 --- a/_includes/option-buttons.js +++ b/_includes/option-buttons.js @@ -4,11 +4,9 @@ var $this = $(this); // don't proceed if already selected - if ( $this.hasClass('selected') ) { - return; + if ( !$this.hasClass('selected') ) { + $this.parents('.option-set').find('.selected').removeClass('selected'); + $this.addClass('selected'); } - $this.parents('.option-set').find('.selected').removeClass('selected'); - $this.addClass('selected'); - });