Project

General

Profile

« Previous | Next » 

Revision 30477

implemented delete by query on index client

View differences:

index_inspector.js
6 6
		$routeProvider
7 7
			.when('/query',		{ templateUrl: '../resources/html/index/indexQuery.html', controller: 'indexQueryController' })
8 8
			.when('/browse',	{ templateUrl: '../resources/html/index/browse.html', controller: 'indexBrowseController' })
9
			.when('/manage',	{ templateUrl: '../resources/html/index/indexManage.html', controller: 'indexmanageController' })
10
			.when('/deletebyquery',	{ templateUrl: '../resources/html/index/deletebyquery.html', controller: 'indexdbqController' })			
9 11
			.otherwise({ redirectTo: '/query' });
10 12
	}
11 13
]);
......
14 16
module.controller('moduleMenuCtrl', [ '$scope', '$location',  
15 17
	function ($scope, $location) {
16 18
		$scope.isActive = function(regex) {
17
			var re = new RegExp(regex);
19
			var re = new RegExp(regex);			
18 20
			return re.test($location.path());
19 21
		}
20 22
	}

Also available in: Unified diff