From e7db43237b63e931000d2bde020a9b74edece00f Mon Sep 17 00:00:00 2001 From: Patrykb0802 Date: Wed, 23 Oct 2024 15:55:01 +0200 Subject: [PATCH] #3025 Report edition: selection of datapoints remains with the old drop-down list --- WebContent/WEB-INF/jsp/reports.jsp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/WebContent/WEB-INF/jsp/reports.jsp b/WebContent/WEB-INF/jsp/reports.jsp index 89494aa44..5efd8720a 100644 --- a/WebContent/WEB-INF/jsp/reports.jsp +++ b/WebContent/WEB-INF/jsp/reports.jsp @@ -48,6 +48,12 @@ ReportsDwr.createReportFromWatchlist(${param.wlid}, loadReportCB); }); + jQuery("#allPointsList").chosen({ + allow_single_deselect: true, + placeholder_text_single: " ", + search_contains: true, + width: "400px" + }); } function loadReport(reportId, copy) { @@ -218,6 +224,7 @@ availPoints[availPoints.length] = allPointsArray[i]; } dwr.util.addOptions("allPointsList", availPoints, "id", "name"); + jQuery("#allPointsList").trigger('chosen:updated'); } function removeFromReportPointsArray(pointId) { @@ -496,6 +503,13 @@ }); startImageFader("runImg"); } + + 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); + });