Commit abbec784 by dileep bhimineni Committed by Vishal Kadam

changes for warnings

parent 75447595
......@@ -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);
......
/**
* 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment