From c54c159530af1108d3f2ffeb9bd37ec8309a77f7 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Mon, 13 Apr 2015 08:35:59 +0000 Subject: [PATCH] Properties no longer shown on search. SVN: 33809 --- .../html/js/controllers/MainController.js | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/controllers/MainController.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/controllers/MainController.js index 0e4cd3c6df7..e1c5f9eb715 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/controllers/MainController.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/controllers/MainController.js @@ -627,13 +627,6 @@ function MainController(profile) { if(value.length < 1) { return; } -// if(value.length < 3) { -// var isOk = window.confirm("Are you sure you want to make a search with " + value.length +" characters? You can expect a lot of results."); -// if(!isOk) { -// $("#search").removeClass("search-query-searching"); -// return; -// } -// } $("#search").addClass("search-query-searching"); if(!searchDomain || searchDomain === profile.getSearchDomains()[0].name) { //Global Search @@ -684,23 +677,6 @@ function MainController(profile) { label : 'Matched Field', property : 'matchedField', sortable : true - }, { - label : 'Properties', - property : 'properties', - sortable : true, - render : function(data) { - var toShow = data.properties; - if(data.properties.length > 200) { - toShow = toShow.substring(0, 200) + "..."; - } - return toShow; - }, - filter : function(data, filter) { - return false; - }, - sort : function(data1, data2, asc) { - return 0; - } }]; columns.push(mainController.createOperationsColumn()); @@ -746,8 +722,7 @@ function MainController(profile) { code : sample.code, sampleTypeCode : sample.sampleTypeCode, matchedText : matchedText, - matchedField : matchedField, - properties : Util.getMapAsString(sample.properties) + matchedField : matchedField }); } callback(dataList); -- GitLab