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
abbec784
Commit
abbec784
authored
9 years ago
by
dileep bhimineni
Committed by
Vishal Kadam
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes for warnings
parent
75447595
master
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
22 deletions
+2
-22
searchController.js
dashboard/v2/public/modules/search/searchController.js
+2
-4
searchDirective.js
dashboard/v2/public/modules/search/searchDirective.js
+0
-18
No files found.
dashboard/v2/public/modules/search/searchController.js
View file @
abbec784
...
...
@@ -59,17 +59,15 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
$scope
.
doToggle
=
function
(
$event
,
el
)
{
this
.
isCollapsed
=
!
el
;
var
currElem
=
$event
.
currentTarget
;
};
$scope
.
filterSearchResults
=
function
(
items
)
{
var
res
=
{};
angular
.
forEach
(
items
,
function
(
value
,
key
)
{
if
(
!
(
typeof
value
==
'object'
)
)
if
(
typeof
value
!==
'object'
)
res
[
key
]
=
value
;
});
return
res
;
}
};
$scope
.
query
=
$stateParams
.
query
;
if
(
$scope
.
query
)
{
$scope
.
search
(
$scope
.
query
);
...
...
This diff is collapsed.
Click to expand it.
dashboard/v2/public/modules/search/searchDirective.js
deleted
100644 → 0
View file @
75447595
/**
* Created by dbhimineni on 5/27/2015.
*/
angular
.
module
(
'dgc.search'
).
directive
(
"myDirective"
,
function
()
{
return
{
restrict
:
'EA'
,
template
:
'<a href="javascript: void(0);" button-toggle toggle="isCollapsed" class="show-more" ng-click="isCollapsed = !isCollapsed">..show more</a>'
,
link
:
function
(
$scope
,
element
,
attrs
){
$scope
.
isCollapsed
=
true
;
console
.
log
(
$scope
.
isCollapsed
);
},
transclude
:
true
,
scope
:
{}
}
});
\ No newline at end of file
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