diff --git a/WebContent/WEB-INF/dwr.xml b/WebContent/WEB-INF/dwr.xml index 2d6c68637b..0931ab2299 100644 --- a/WebContent/WEB-INF/dwr.xml +++ b/WebContent/WEB-INF/dwr.xml @@ -20,7 +20,7 @@ - + @@ -161,7 +161,7 @@ - + @@ -190,7 +190,7 @@ - + diff --git a/WebContent/WEB-INF/jsp/dataPointDetails.jsp b/WebContent/WEB-INF/jsp/dataPointDetails.jsp index fd1ad7473d..8e9773db1c 100644 --- a/WebContent/WEB-INF/jsp/dataPointDetails.jsp +++ b/WebContent/WEB-INF/jsp/dataPointDetails.jsp @@ -34,13 +34,25 @@ getFlipbookChart(); getStatsChart(); - - jQuery("#datPointDetailsPointSelect").chosen({ - allow_single_deselect: true, - placeholder_text_single: " ", - search_contains: true, - width: "400px" - }); + + let pointsArray = new Array(); + + + pointsArray[pointsArray.length] = { + id : "", + name : "", + xid : "", + dataType : "" + }; + + + let datPointDetailsPointSelect = new DataPointsSelect({ + selectHtmlId: "datPointDetailsPointSelect", + placeholderTextSingle: "", + pointsArray: pointsArray.filter((point) => point.id == ), + invisibleEmptyOption: true, + imgAddHtmlIds: ["bullet_go_left", "bullet_go"] + }); } // @@ -152,33 +164,22 @@ function swapFlipbookImage(uri) { $("flipbookImage").src = uri; } - - jQuery(document).ready(function(){ - (function($) { - loadjscssfile("resources/jQuery/plugins/chosen/chosen.min.css","css"); - loadjscssfile("resources/jQuery/plugins/chosen/chosen.jquery.min.js","js"); - })(jQuery); - }); diff --git a/WebContent/WEB-INF/jsp/dataPointEdit.jsp b/WebContent/WEB-INF/jsp/dataPointEdit.jsp index 2ec64a8f01..9ab965889c 100644 --- a/WebContent/WEB-INF/jsp/dataPointEdit.jsp +++ b/WebContent/WEB-INF/jsp/dataPointEdit.jsp @@ -83,14 +83,14 @@
:  - - - - - + - + - +
@@ -145,8 +120,8 @@
- - + +