Commit b7340d69 authored by Fintan Mc Gee's avatar Fintan Mc Gee

added query entitity on double click to List view. Nodes ar enot jsut...

added query entitity on double click to List view. Nodes ar enot jsut expanded, it is as if the person queriod for that nodeLinkListView_copy.html
parent 134f7d45
......@@ -185,4 +185,5 @@
<script src="./js/services/nodeInfoService.js"></script>
<script src="./js/services/attributeDisplayService.js"></script>
<script src="./js/services/attributeBarChartDataService.js"></script>
<script src="./js/services/userActionLoggingService.js"></script>
</html>
\ No newline at end of file
......@@ -516,6 +516,29 @@ angular.module('blizaarModule.controllers')
}
}
$scope.controllerHandleDoubleClick = function(node, layerName){
$scope.model.inputName = node.name;
$scope.model.inputType = node.label;
var nameSearch = binarySearchTextArray($scope.model.inputName,$scope.model.availableNames);
var name , name_before, name_after;
var nameIndex = -1
if(nameSearch < 0) {
nameIndex = Math.abs(nameSearch +1);
name = $scope.model.availableNames[nameIndex];
if(name.indexOf(node.name > -1) ){
$scope.model.inputName = name;
$scope.loadEntityData();
}
} else {
$scope.loadEntityData();
}
}
$scope.getShowMasterLayer = function(){
......
......@@ -401,7 +401,11 @@ angular.module('blizaarModule.directives')
};
// Describe the mouse double click method
dbclick = function (n) {
scope.expandNode(n)
if(scope.controllerHandleDoubleClick) {
(scope.controllerHandleDoubleClick(n))
} else {
scope.expandNode(n)
}
};
getNodeImage = function (n) {
var labelPath = "";
......
/**
* Created by Fintan MCGee on 10/12/2018.
*
* This service is used to create and stroe data for attribtue bar charts
* This service is used to create and stroe data for attribtue bar charts thart are glyphs for the data
*
*
*/
......
/**
* Created by Fintan MCGee on 10/12/2018.
*
* This service stoire a history of usr actions
*
*
*/
angular.module('blizaarModule.services')
.factory('userActionLoggingService', [function () {
return {
// all log entries are of the form {timstamps: text Graph Name
actionHistory : [ ],
logAction : function(targetData, actionType, description){
dateObject= new Date();
var dateString = dateObject.toISOString();
actionHistory.push({time: dateString, target: targetData, action: action, description:description });
},
getActionLogText : function(){
var historyString = "";
this.actionHistory.forEach(function(action) {
historyString.append(this.action.time + "\t" + this.action.target + "\t" + this.action.action + "\t" + this.action.description + "\n" )
});
return historyString;
},
clearLog : function(){
this.actionHistory = [];
}
};
}]);
\ 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