Url parameter to Utilities.GetChoices to allow adding parameters to options query.

This commit is contained in:
Chris Houseknecht
2013-11-01 23:50:33 +00:00
committed by Chris Church
parent a5bb145f70
commit 41b5d8b9ad
2 changed files with 3 additions and 7 deletions

View File

@@ -249,19 +249,13 @@ function ProjectsAdd ($scope, $rootScope, $compile, $location, $log, $routeParam
LoadBreadCrumbs();
GetProjectPath({ scope: scope, master: master });
//scope.scm_type = null;
//master.scm_type = null;
if (scope.removeChoicesReady) {
scope.removeChoicesReady();
}
scope.removeChoicesReady = scope.$on('choicesReady', function() {
console.log('setting type');
var found = false;
for (var i=0; i < scope.scm_type_options.length; i++) {
if (scope.scm_type_options[i].value == '') {
scope['scm_type'] = scope.scm_type_options[i];
found = true;
break;
}
}