Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
62458388
Commit
62458388
authored
5 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3628 : Beta UI: Wildcard Search for classifications doesn't fire any search
parent
6eb72fa4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
12 deletions
+57
-12
leftsidebar.scss
dashboardv3/public/css/scss/leftsidebar.scss
+36
-6
ClassificationTreeLayoutView_tmpl.html
...plates/search/tree/ClassificationTreeLayoutView_tmpl.html
+6
-2
ClassificationTreeLayoutView.js
...blic/js/views/search/tree/ClassificationTreeLayoutView.js
+15
-4
No files found.
dashboardv3/public/css/scss/leftsidebar.scss
View file @
62458388
...
...
@@ -207,11 +207,29 @@
span
{
color
:
#fff
!
important
;
}
.clear-icon
{
color
:
$color_ironside_gray_approx
!
important
;
}
.wildcard-btn
{
color
:
$color_jungle_green_approx
!
important
;
}
}
.wildcard-btn
{
margin
:
0px
;
color
:
$color_jungle_green_approx
!
important
;
}
.wildcard-btn
:hover
{
margin
:
0px
;
color
:
$white
!
important
;
}
input
{
color
:
$color_ironside_gray_approx
!
important
;
width
:
1
5
0px
;
width
:
1
3
0px
;
display
:
inline-block
;
}
...
...
@@ -219,7 +237,8 @@
background-color
:
#fff
;
}
&
:hover
.clear-icon
{
.clear-icon
{
color
:
$color_ironside_gray_approx
!
important
;
}
...
...
@@ -237,12 +256,23 @@
.clear-icon
{
color
:
$color_ironside_gray_approx
!
important
;
position
:
absolute
;
top
:
30%
;
right
:
12px
;
z-index
:
3
;
top
:
29%
;
right
:
48px
;
}
.has-feedback
input
{
padding
:
6px
25px
6px
6px
;
}
.has-feedback
.form-control
{
padding
:
6px
12px
;
.has-feedback
input
:focus
{
border-color
:
$color_havelock_blue_approx
!
important
;
}
.wildcard-search
:hover
{
background-color
:
$white
;
}
}
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/templates/search/tree/ClassificationTreeLayoutView_tmpl.html
View file @
62458388
...
...
@@ -34,13 +34,17 @@
</li>
<li
data-id=
"createTag"
data-type=
"classification"
>
<i
class=
"fa fa-plus"
></i><span>
Create Classification
</span>
</li>
<li
data-id=
"wildCardClick"
data-type=
"classification
"
>
<li
class=
"wildcard-search"
data-type=
"classification"
data-id=
"wildCardContainer
"
>
<div
class=
"has-feedback align-left-right-icon search-box"
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
name=
"wildcard search"
placeholder=
"Wildcard search"
data-id=
"wildCardValue"
/>
<span
class=
"fa fa-times clear-icon"
data-id=
"clearWildCard"
>
</span>
<div
class=
"input-group-btn"
>
<span
class=
"btn btn-md wildcard-btn btn-action"
data-id=
"wildCardSearch"
data-original-title=
"Wildcard Search"
><i
class=
"fa fa-search"
></i></span>
</div>
</div>
</div>
</li>
</button>
</ul>
</button>
</div>
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/views/search/tree/ClassificationTreeLayoutView.js
View file @
62458388
...
...
@@ -52,6 +52,7 @@ define([
wildCardClick
:
'[data-id="wildCardClick"]'
,
wildCardSearch
:
'[data-id="wildCardSearch"]'
,
wildCardValue
:
'[data-id="wildCardValue"]'
,
wildCardContainer
:
'[data-id="wildCardContainer"]'
,
clearWildCard
:
'[data-id="clearWildCard"]'
},
templateHelpers
:
function
()
{
...
...
@@ -69,7 +70,8 @@ define([
that
.
refresh
({
type
:
type
});
};
events
[
"click "
+
this
.
ui
.
createTag
]
=
function
()
{
events
[
"click "
+
this
.
ui
.
createTag
]
=
function
(
e
)
{
e
.
stopPropagation
();
that
.
onClickCreateTag
();
};
...
...
@@ -96,7 +98,9 @@ define([
events
[
"click "
+
this
.
ui
.
wildCardSearch
]
=
function
(
e
)
{
e
.
stopPropagation
();
var
tagValue
=
this
.
ui
.
wildCardValue
.
val
();
if
(
tagValue
.
indexOf
(
"*"
)
!=
-
1
)
{
that
.
findSearchResult
(
tagValue
);
}
};
events
[
"click "
+
this
.
ui
.
wildCardValue
]
=
function
(
e
)
{
e
.
stopPropagation
();
...
...
@@ -104,8 +108,12 @@ define([
events
[
"click "
+
this
.
ui
.
clearWildCard
]
=
function
(
e
)
{
e
.
stopPropagation
();
that
.
ui
.
wildCardValue
.
val
(
""
);
that
.
ui
.
clearWildCard
.
addClass
(
'hide-icon'
);
}
events
[
"keyup "
+
this
.
ui
.
wildCardValue
]
=
function
(
e
)
{
events
[
"click "
+
this
.
ui
.
wildCardContainer
]
=
function
(
e
)
{
e
.
stopPropagation
();
}
events
[
"keydown "
+
this
.
ui
.
wildCardValue
]
=
function
(
e
)
{
e
.
stopPropagation
();
var
code
=
e
.
which
;
if
(
this
.
ui
.
wildCardValue
.
val
().
length
>
0
)
{
...
...
@@ -114,14 +122,17 @@ define([
this
.
ui
.
clearWildCard
.
addClass
(
'hide-icon'
);
}
if
(
code
==
13
)
{
e
.
preventDefault
();
var
tagValue
=
this
.
ui
.
wildCardValue
.
val
();
if
(
tagValue
.
indexOf
(
"*"
)
!=
-
1
)
{
that
.
findSearchResult
(
tagValue
);
}
}
};
events
[
"keyup "
+
this
.
ui
.
wildCardValue
]
=
function
(
e
)
{
e
.
stopPropagation
();
e
.
preventDefault
();
};
return
events
;
},
initialize
:
function
(
options
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment