I have an external javascript file that is declared in my html file with the following tag:
<script type="text/javascript" th:inline="javascript" th:src="@{/js/gp-aprobarDocumento.js}"></script>
and in gp-aprobarDocumento.js
the code below:
ventanaAprobacion = function(td) { idEntregable = $(td).attr("data-row-id"); idVersion = $(td).attr("data-row-version"); alert("la siguiente viene con el texto dle properties"); alert(); $(function() { $("#dialog-aprobar-documento").dialog("open"); }); }
Thus, when the function is executed, the window warning is displayed blank.
Does anyone know how to put a thimeleaf expression in external javascript?
source share