Skip to content

Commit

Permalink
Merge pull request #3037 from SCADA-LTS/feature/#3025_Report_edition_…
Browse files Browse the repository at this point in the history
…selection_of_datapoints_remains_with_the_old_drop_down_list

#3025 Report edition: selection of datapoints remains with the old drop-down list
  • Loading branch information
Limraj authored Oct 23, 2024
2 parents 6a72887 + e7db432 commit dde38d5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions WebContent/WEB-INF/jsp/reports.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
ReportsDwr.createReportFromWatchlist(${param.wlid}, loadReportCB);
</c:if>
});
jQuery("#allPointsList").chosen({
allow_single_deselect: true,
placeholder_text_single: " ",
search_contains: true,
width: "400px"
});
}
function loadReport(reportId, copy) {
Expand Down Expand Up @@ -218,6 +224,7 @@
availPoints[availPoints.length] = allPointsArray[i];
}
dwr.util.addOptions("allPointsList", availPoints, "id", "name");
jQuery("#allPointsList").trigger('chosen:updated');
}
function removeFromReportPointsArray(pointId) {
Expand Down Expand Up @@ -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);
});
</script>

<table cellpadding="0" cellspacing="0"><tr><td>
Expand Down

0 comments on commit dde38d5

Please sign in to comment.