From 848d0e83e87abde6d9b77af11477ed3f10b38d93 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Wed, 15 Mar 2017 16:03:04 +0000
Subject: [PATCH] SSDM-4184 : Show operators only for properties, polishing

SVN: 37912
---
 .../html/js/views/AdvancedSearch/AdvancedSearchView.js         | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js
index a9ee67cee65..263a141e03c 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js
@@ -316,7 +316,6 @@ function AdvancedSearchView(advancedSearchController, advancedSearchModel) {
 			
 			//Reset operator
 			$newFieldOperatorContainer.empty();
-			var uuid = $($newFieldOperatorContainer.parent()).attr("id");
 			delete _this._advancedSearchModel.criteria.rules[uuid].operator;
 			
 			if(selectedValue && selectedValue.startsWith("PROP.")) {
@@ -338,8 +337,6 @@ function AdvancedSearchView(advancedSearchController, advancedSearchModel) {
 				
 				comparisonDropdown.change(function() {
 					var $thisComponent = $(this);
-					//Get uuid and value and update model (type only)
-					var uuid = $($($thisComponent.parent()).parent()).attr("id");
 					var selectedValue = $thisComponent.val();
 					_this._advancedSearchModel.criteria.rules[uuid].operator = selectedValue; //Update model
 				});
-- 
GitLab