[
https://issues.apache.org/jira/browse/WICKET-5405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov updated WICKET-5405:
------------------------------------
Priority: Minor (was: Major)
> Unxpected token % in wicket-ajax.js due to template js inclusion
> ----------------------------------------------------------------
>
> Key: WICKET-5405
> URL: https://issues.apache.org/jira/browse/WICKET-5405
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.10
> Environment: Mac OS X, java 1.7, wicket 1.5.10
> Reporter: Jason Novotny
> Priority: Minor
> Attachments: file-upload.zip
>
>
> I'm including some javascript templates
> https://github.com/blueimp/JavaScript-Templates in my wicket page, that looks
> like:
> <script id="template-upload" type="text/x-tmpl">
> {% for (var i=0, file; file=o.files[i]; i++) { %}
> <tr class="template-upload fade">
> ....
> And due to the "%" in the template js script, I get:
> Uncaught SyntaxError: Unexpected token %
> This occurs in the wicket-ajax.js code at this segment:
> // Adds the element to page head
> Wicket.Head.addElement = function(element) {
> var head = document.getElementsByTagName("head");
> if (head[0]) {
> head[0].appendChild(element);
> }
> }
--
This message was sent by Atlassian JIRA
(v6.1#6144)