Unplanned
Last Updated: 15 Oct 2021 16:31 by ADMIN
John
Created on: 15 Oct 2021 16:31
Category: UI for ASP.NET MVC
Type: Feature Request
1
When using a custom popup editor in the grid, double-slash comments break it

Consider implementing logic that strips js comments from the Kendo templates.

If the following js function is added into the Grid's custom popup editor:

<script>
	//some comment
	(function () {
		alert(1)
	})();
</script>
the function won't work, because the when the template is serialized the content of the script tag is put into one line, which causes everything after the comment to get commented. 

A possible workaround is to use the following comment syntax:
<script>
	/*some comment*/
	(function () {
		alert(1)
	})();
</script>
However, it would be helpful if there is dedicated logic that strips comments from the script tags, as this would allow using either of the comment syntaxes.

0 comments