зеркало из https://github.com/mozilla/MozDef.git
pull down option for common veris tags, closes 135
This commit is contained in:
Родитель
2521612760
Коммит
4abaf69446
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -10,24 +10,44 @@ Jeff Bryner jbryner@mozilla.com
|
|||
|
||||
<template name="veristags">
|
||||
<style>
|
||||
.veristags{
|
||||
.veristagform{
|
||||
position: relative;
|
||||
float: right;
|
||||
margin: 5px;
|
||||
padding: 2px 7px;
|
||||
font-size: 95%;
|
||||
font-weight: bold;
|
||||
background: #999;
|
||||
color: #fff;
|
||||
}
|
||||
.tag{
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
li {
|
||||
cursor: pointer;
|
||||
color: #000;
|
||||
}
|
||||
.label{
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
</style>
|
||||
<form class="veristags form-search" role="form">
|
||||
|
||||
<form class="veristagform form-search" role="form">
|
||||
<div class="form-group">
|
||||
<input type="search" class="form-control search-query tagfilter" id="tagfilter" placeholder="tag filter">
|
||||
<div class="dropdown pull-right">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" id="dLabel" data-target="#"><span class="label label-info">common</span><b class="caret"></b></a>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
||||
<li>actor</li>
|
||||
<li>asset</li>
|
||||
<li>action</li>
|
||||
<li>impact</li>
|
||||
<li>discovery</li>
|
||||
<li>motive</li>
|
||||
<li>confidence</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="veristags">
|
||||
{{#each veris}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче