Commit 77035e5910570998bca008a4859f1ad63bf03256

  • avatar
  • arvind
  • Tue Sep 09 20:47:48 IST 2014
Reset anno object when a user clicks on any entry in linked-data
  
722722 this.render();
723723 },
724724 userTagClicked: function(e) {
725 anno.reset();
725726 var user = $(e.currentTarget).text();
726727 var swts = swtr.LDs.filter(function(swt) {
727728 if(swt.get('who') == user) {
728729 return swt;
729730 }
730731 });
731 swts = _.uniq(swts,'how'.src);
732 swts = _.uniq(swts, function(swt) {
733 return swt.get('where');
734 });
732735 this.setGalleryView(swts);
733736 // $(this.el).hide();
734737 },
735738 tagsTagClicked: function(e) {
739 anno.reset();
736740 var tag = $(e.currentTarget).text();
737741 var swts = swtr.LDs.filter(function(swt) {
738742 if(swt.get('how').tags){
745745 }
746746 }
747747 });
748 this.setGalleryView(swts);
748 swts = _.uniq(swts, function(swt) {
749 return swt.get('where');
750 });
751
752 this.setGalleryView(_.uniq(swts, 'where'));
749753 // $(this.el).hide();
750754 },
751755 setGalleryView: function(swts) {