src/p4l/static/p4l/js/p4l.js
changeset 160 470ea7806537
parent 159 dbc7cce33ace
child 166 0f99a7fff851
equal deleted inserted replaced
159:dbc7cce33ace 160:470ea7806537
   203 	    $scope.uriLabels = RecordModel.uriLabels;
   203 	    $scope.uriLabels = RecordModel.uriLabels;
   204 	    $scope.addUriText = '';
   204 	    $scope.addUriText = '';
   205 	    $scope.uriInDict = false;
   205 	    $scope.uriInDict = false;
   206 	    
   206 	    
   207 	    $scope.addUriToList = function() {
   207 	    $scope.addUriToList = function() {
   208 	        //TODO: really check that the $scope.addUriText belong to the correct thesaurus.
       
   209 	        if($scope.addUriText.match("^http://")) {
   208 	        if($scope.addUriText.match("^http://")) {
   210 	            $scope.list.push($scope.addUriText);
   209 	            $scope.list.push($scope.addUriText);
   211 	            $scope.addUriText = '';
   210 	            $scope.addUriText = '';
   212 	        }
   211 	        }
   213 	    };
   212 	    };
   260             $scope.uriLabels = RecordModel.uriLabels;
   259             $scope.uriLabels = RecordModel.uriLabels;
   261             $scope.addUriText = '';
   260             $scope.addUriText = '';
   262     	    $scope.uriInDict = false;
   261     	    $scope.uriInDict = false;
   263 
   262 
   264             $scope.updateVal = function() {
   263             $scope.updateVal = function() {
   265                 // TODO: really check that the $scope.addUriText belong to the correct thesaurus.
       
   266                 if($scope.addUriText.match("^http://")) {
   264                 if($scope.addUriText.match("^http://")) {
   267                     $scope.val = $scope.addUriText;
   265                     $scope.val = $scope.addUriText;
   268                 }
   266                 }
   269             };
   267             };
   270 
   268