Skip to content

Commit

Permalink
Merge pull request #1659 from skateman/bz-1465346
Browse files Browse the repository at this point in the history
[FINE] Fix search on the topology screens
  • Loading branch information
simaishi authored Jul 10, 2017
2 parents 1de7e66 + 6acb87b commit c53bfe1
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ function CloudTopologyCtrl($scope, $http, $interval, $location, topologyService,
var icons = null;

var d3 = window.d3;
$scope.d3 = d3;

$scope.refresh = function() {
var id;
if ($location.absUrl().match("show/$") || $location.absUrl().match("show$")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function ContainerTopologyCtrl($scope, $http, $interval, topologyService, $windo
var icons = null;

var d3 = window.d3;
$scope.d3 = d3;

$scope.refresh = function() {
var id, type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ function InfraTopologyCtrl($scope, $http, $interval, $location, topologyService,
var icons = null;

var d3 = window.d3;
$scope.d3 = d3;

$scope.refresh = function() {
var id;
if ($location.absUrl().match("show/$") || $location.absUrl().match("show$")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ MiddlewareTopologyCtrl.$inject = ['$scope', '$http', '$interval', '$location', '
function MiddlewareTopologyCtrl($scope, $http, $interval, $location, topologyService, miqService) {
var self = this;
$scope.vs = null;
var d3 = window.d3;
var icons;

var d3 = window.d3;
$scope.d3 = d3;

$scope.refresh = function() {
var id;
if ($location.absUrl().match('show/$') || $location.absUrl().match('show$')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ function NetworkTopologyCtrl($scope, $http, $interval, $location, topologyServic
var icons = null;

var d3 = window.d3;
$scope.d3 = d3;

$scope.refresh = function() {
var id;
if ($location.absUrl().match("show/$") || $location.absUrl().match("show$")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ function physicalInfraTopologyCtrl($scope, $http, $interval, $location, topology
var icons = null;

var d3 = window.d3;
$scope.d3 = d3;

$scope.refresh = function() {
var id;
if ($location.absUrl().match("show/$") || $location.absUrl().match("show$")) {
Expand Down
4 changes: 2 additions & 2 deletions app/assets/javascripts/services/topology_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ ManageIQ.angular.app.service('topologyService', function() {

$scope.searchNode = function() {
var svg = topologyService.getSVG($scope.d3);
var query = $('input#search_topology')[0].value;
var query = $('input#search')[0].value;

$scope.searching = true;
$scope.notFound = ! topologyService.searchNode(svg, query);
Expand All @@ -147,7 +147,7 @@ ManageIQ.angular.app.service('topologyService', function() {
topologyService.resetSearch($scope.d3);

// Reset the search term in search input
$('input#search_topology')[0].value = "";
$('input#search')[0].value = "";

$scope.searching = false;
$scope.notFound = false;
Expand Down

0 comments on commit c53bfe1

Please sign in to comment.