From c6ad59d28b6498c98e2a9d67d08cd7e6e465a670 Mon Sep 17 00:00:00 2001 From: jlukic Date: Sun, 15 Sep 2013 13:10:23 -0400 Subject: [PATCH] typo in js Former-commit-id: d4ea578e2f8e87d295c7596a395b2159583fb90d Former-commit-id: 966a23decccdfdc6ba19c2cda9e1caf530a6b221 --- node/src/files/examples/feed.js | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/node/src/files/examples/feed.js b/node/src/files/examples/feed.js index 9f9bdc264..69b33d24a 100755 --- a/node/src/files/examples/feed.js +++ b/node/src/files/examples/feed.js @@ -1,26 +1,30 @@ $(document) .ready(function() { - var setActive = function(event) { - $(this) - .addClass('active') - .closest('.ui.menu') - .find('.item').not(this) - .removeClass('active') - ; - event.stopPropagation(); - }; - $('.filter.menu .item') .tab() ; $('.left.column .menu .item') - .on('click', setActive) + .on('click', function() { + $(this) + .addClass('active') + .closest('.ui.menu') + .find('.item').not(this) + .removeClass('active') + ; + event.stopPropagation(); + }) ; $('.list .item') - .on('click', setActive) + .on('click', function() { + $(this) + .addClass('active') + .siblings() + .removeClass('active') + ; + }) ; })