From 4abaf69446f334d72de688e7ed17c81c979f4a2e Mon Sep 17 00:00:00 2001 From: Jeff Bryner Date: Wed, 9 Jul 2014 09:23:26 -0700 Subject: [PATCH] pull down option for common veris tags, closes 135 --- meteor/app/client/mozdef.js | 6 ++++-- meteor/app/client/verisTags.html | 26 +++++++++++++++++++++++--- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/meteor/app/client/mozdef.js b/meteor/app/client/mozdef.js index 84c599a5..bf9d00b2 100644 --- a/meteor/app/client/mozdef.js +++ b/meteor/app/client/mozdef.js @@ -90,12 +90,14 @@ if (Meteor.isClient) { Template.veristags.events({ 'dragstart .tag': function(e){ - //console.log(this.tag) - //console.log(e) e.originalEvent.dataTransfer.setData("text/plain",this.tag); }, 'load': function(e, template){ template.find("#tagfilter").value=Session.get('verisfilter'); + }, + 'click li': function(e,template){ + Session.set('verisfilter',e.target.textContent); + template.find("#tagfilter").value=e.target.textContent; } }); diff --git a/meteor/app/client/verisTags.html b/meteor/app/client/verisTags.html index b3e6d832..223c3048 100644 --- a/meteor/app/client/verisTags.html +++ b/meteor/app/client/verisTags.html @@ -10,24 +10,44 @@ Jeff Bryner jbryner@mozilla.com