Browse Source

typo in js

Former-commit-id: d4ea578e2f
Former-commit-id: 966a23decc
pull/258/head
jlukic 11 years ago
parent
commit
c6ad59d28b
1 changed files with 16 additions and 12 deletions
  1. 28
      node/src/files/examples/feed.js

28
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')
;
})
;
})
Loading…
Cancel
Save