Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix the <script> tag for finished.js
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Feb 25, 2015
1 parent 90758c2 commit 65445c9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ bin/

# Gradle files
.gradle/

# other things that really ought to go under target/
ehcache.disk.store.dir/
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public String getJavascriptFinishedScript() {
// http://127.0.0.1:8180/zanata/javax.faces.resource/signals.min.js.seam?ln=script
String scriptUrl = httpRequest.getContextPath() + "/javax.faces.resource/finished.js.seam?ln=script";
if (Boolean.getBoolean(propName)) {
return "<script defer type=\"application/javascript\" src=\"" +
scriptUrl + "\"/>";
return "<script defer=\"defer\" type=\"application/javascript\" src=\"" +
scriptUrl + "\"></script>";
}
return "";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@
<ui:remove>
<!-- This needs to appear after all other JavaScript, for accurate testing -->
</ui:remove>
<h:outputText value="#{ajaxCounter.javascriptFinishedScript}" escape="false" />
</h:body>

<h:outputText value="#{ajaxCounter.javascriptFinishedScript}" escape="false" />
</html>
</f:view>

2 changes: 1 addition & 1 deletion zanata-war/src/main/webapp/WEB-INF/template/template.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
<ui:remove>
<!-- This needs to appear after all other JavaScript, for accurate testing -->
</ui:remove>
<h:outputText value="#{ajaxCounter.javascriptFinishedScript}" escape="false" />
</h:body>
<h:outputText value="#{ajaxCounter.javascriptFinishedScript}" escape="false" />
</html>
</f:view>
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<ui:remove>
<!-- This needs to appear after all other JavaScript, for accurate testing -->
</ui:remove>
<h:outputText value="#{ajaxCounter.javascriptFinishedScript}" escape="false" />
</h:body>
<h:outputText value="#{ajaxCounter.javascriptFinishedScript}" escape="false" />
</html>
</f:view>
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<ui:remove>
<!-- This needs to appear after all other JavaScript, for accurate testing -->
</ui:remove>
<h:outputText value="#{ajaxCounter.javascriptFinishedScript}" escape="false" />
</h:body>
<h:outputText value="#{ajaxCounter.javascriptFinishedScript}" escape="false" />
</html>
</f:view>

0 comments on commit 65445c9

Please sign in to comment.