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
ab8b7564
Commit
ab8b7564
authored
Jun 05, 2019
by
gutkaBinit
Committed by
nixonrodrigues
Jun 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3247 UI:Search page showing unnecessary UI elements when no records are found.
parent
ebeb0c98
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
SearchResultLayoutView_tmpl.html
...blic/js/templates/search/SearchResultLayoutView_tmpl.html
+13
-0
SearchResultLayoutView.js
dashboardv2/public/js/views/search/SearchResultLayoutView.js
+10
-1
No files found.
dashboardv2/public/js/templates/search/SearchResultLayoutView_tmpl.html
View file @
ab8b7564
...
...
@@ -23,6 +23,19 @@
<div
class=
"ellipsis"
style=
"display: none;"
><span
class=
"searchResult"
style=
" font-size: 16px;"
></span>
</div>
<div
class=
"searchTable"
>
<div
class=
"row no-data"
style=
"display: none;"
>
<div
class=
"position-relative thick-border"
>
<div
style=
"padding-top: 20px; "
class=
"table-responsive tableBorder"
>
<table
class=
"table table-hover backgrid table-quickMenu"
>
<tbody>
<tr
class=
"empty"
>
<td
colspan=
"16"
><span>
No Records found!
</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class=
"{{#unless isGlossaryView}}row well{{/unless}}"
style=
"padding-top: 0px;"
>
<div
class=
"row form-group pagination-box filter-box"
style=
"display: none;"
>
<div
class=
"col-sm-3"
>
...
...
dashboardv2/public/js/views/search/SearchResultLayoutView.js
View file @
ab8b7564
...
...
@@ -70,7 +70,8 @@ define(['require',
showPage
:
"[data-id='showPage']"
,
gotoPage
:
"[data-id='gotoPage']"
,
gotoPagebtn
:
"[data-id='gotoPagebtn']"
,
activePage
:
"[data-id='activePage']"
activePage
:
"[data-id='activePage']"
,
rowData
:
".row"
},
templateHelpers
:
function
()
{
return
{
...
...
@@ -561,6 +562,10 @@ define(['require',
var
table
=
new
TableLayout
(
_
.
extend
({},
that
.
commonTableOptions
,
{
columns
:
columns
}));
if
(
table
.
collection
.
length
===
0
)
{
this
.
hideIrreleventElements
();
return
;
}
if
(
!
that
.
REntityTableLayoutView
)
{
return
;
}
...
...
@@ -792,6 +797,10 @@ define(['require',
}
return
this
.
searchCollection
.
constructor
.
getTableCols
(
col
,
this
.
searchCollection
);
},
hideIrreleventElements
:
function
()
{
this
.
ui
.
rowData
.
siblings
(
'.well'
).
hide
();
this
.
ui
.
rowData
.
siblings
(
'.no-data'
).
show
();
},
getDaynamicColumns
:
function
(
valueObj
)
{
var
that
=
this
,
col
=
{};
...
...
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