Skip to content

Commit

Permalink
Adding new handlebars partial for websocket to allow for overriding t…
Browse files Browse the repository at this point in the history
…he function call
  • Loading branch information
computate committed Mar 16, 2023
1 parent fdab419 commit 1423258
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/main/java/org/computate/frFR/java/EcrirePageClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -1731,6 +1731,7 @@ else if("LocalDate".equals(entiteNomSimple)) {
l("{{#partial \"htmStyle\"}}{{> htmStyle", classePageNomSimple, "}}{{/partial}}");
l("{{#partial \"htmScripts\"}}{{> htmScripts", classePageNomSimple, "}}{{/partial}}");
l("{{#partial \"htmScript\"}}{{> htmScript", classePageNomSimple, "}}{{/partial}}");
l("{{#partial \"websocket\"}}{{> websocket", classePageNomSimple, "}}{{/partial}}");
l("{{#partial \"htmBodySidebar\"}}{{> htmBodySidebar", classePageNomSimple, "}}{{/partial}}");
l("{{#partial \"htmBody", langueConfig.getString(ConfigCles.var_Debut), "\"}}{{> htmBody", langueConfig.getString(ConfigCles.var_Debut), classePageNomSimple, "}}{{/partial}}");
l("{{#partial \"htmBody", langueConfig.getString(ConfigCles.var_Milieu), "\"}}{{> htmBody", langueConfig.getString(ConfigCles.var_Milieu), classePageNomSimple, "}}{{/partial}}");
Expand Down Expand Up @@ -2270,6 +2271,14 @@ else if(entiteAttribuer) {
}
}
}
tl(3, "$('#site-calendar-box').accordion({ collapsible: true, active: false });");
l("{{#if DEFAULT_MAP_LOCATION }}");
tl(3, "window.DEFAULT_MAP_LOCATION = { lat: {{ DEFAULT_MAP_LOCATION.lat }}, lon: {{ DEFAULT_MAP_LOCATION.lon }} };");
l("{{/if}}");
l("{{#if DEFAULT_MAP_ZOOM }}");
tl(3, "window.DEFAULT_MAP_ZOOM = {{ DEFAULT_MAP_ZOOM }};");
l("{{/if}}");
tl(3, "window.DEFAULT_ZONE_ID = '{{ defaultZoneId }}';");
tl(3, "$(document).ready(function() {");
tl(4, "document.onkeydown = function(evt) {");
tl(5, "evt = evt || window.event;");
Expand All @@ -2288,7 +2297,6 @@ else if(entiteAttribuer) {
tl(4, "if(pk != null) {");
s(wJsInit);
tl(4, "}");
tl(4, "websocket", classeApiClasseNomSimple, "(websocket", classeApiClasseNomSimple, "Inner);");
tl(4, "window.varsFq = JSON.parse('{{{toJsonObjectStringInApostrophes varsFq}}}');");
tl(4, "window.varsRange = JSON.parse('{{{toJsonObjectStringInApostrophes varsRange}}}');");
tl(4, "window.defaultRangeVar = '{{ defaultRangeVar }}';");
Expand All @@ -2299,17 +2307,15 @@ else if(entiteAttribuer) {
tl(5, "initialView: 'dayGridMonth'");
tl(4, "});");
tl(4, "//calendar.render();");
tl(0, "{{#block \"websocket\"}}{{/block}}");
tl(3, "});");
tl(3, "$('#site-calendar-box').accordion({ collapsible: true, active: false });");
l("{{#if DEFAULT_MAP_LOCATION }}");
tl(3, "window.DEFAULT_MAP_LOCATION = { lat: {{ DEFAULT_MAP_LOCATION.lat }}, lon: {{ DEFAULT_MAP_LOCATION.lon }} };");
l("{{/if}}");
l("{{#if DEFAULT_MAP_ZOOM }}");
tl(3, "window.DEFAULT_MAP_ZOOM = {{ DEFAULT_MAP_ZOOM }};");
l("{{/if}}");
tl(3, "window.DEFAULT_ZONE_ID = '{{ defaultZoneId }}';");
tl(2, "</script>");
tl(0, "{{/inline}}");

tl(0, "{{#*inline \"websocket", classePageNomSimple, "\"}}");
tl(4, "<!-- inline \"websocket", classePageNomSimple, "\" -->");
tl(4, "websocket", classeApiClasseNomSimple, "(websocket", classeApiClasseNomSimple, "Inner);");
tl(0, "{{/inline}}");
}
t(0, "{{#*inline \"htmUrl", classeApiClasseNomSimple, "\"}}");
s("{{pageUri}}");
Expand Down

0 comments on commit 1423258

Please sign in to comment.