Skip to content

Commit

Permalink
extension des .js par n° de version pour prévention pb de cache
Browse files Browse the repository at this point in the history
  • Loading branch information
MedShake committed Apr 26, 2018
1 parent 9d9d67b commit 3e48373
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
11 changes: 5 additions & 6 deletions templates/base/patient/chiroConsult.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
# @author fr33z00 <https://github.com/fr33z00>
#}

<style>
.chiroTArray input[type=checkbox] {box-shadow: none;}
<style>
.chiroTArray input[type=checkbox] {box-shadow: none;}
.chiroTArray :nth-child(3) p{
margin: 0 0 8px;
font-size: 14px;
Expand Down Expand Up @@ -84,8 +84,8 @@
.checkmarkRadio:after {top: 5px;left: 5px;width: 6px;height: 6px;border-radius: 50%;background: white !important;}

</style>
<script type="text/javascript" src="{{ t.config.protocol }}{{ t.config.host }}{{ t.config.urlHostSuffixe }}/thirdparty/fr33z00/panzoom/dist/jquery.panzoom.js"></script>
<script type="text/javascript" src="{{ t.config.protocol }}{{ t.config.host }}{{ t.config.urlHostSuffixe }}/thirdparty/jquery/jquery-mousewheel/jquery.mousewheel.js"></script>
<script type="text/javascript" src="{{ t.config.protocol }}{{ t.config.host }}{{ t.config.urlHostSuffixe }}/thirdparty/fr33z00/panzoom/dist/jquery.panzoom.js?{{ modules.base }}"></script>
<script type="text/javascript" src="{{ t.config.protocol }}{{ t.config.host }}{{ t.config.urlHostSuffixe }}/thirdparty/jquery/jquery-mousewheel/jquery.mousewheel.js?{{ modules.base }}"></script>

<ul id="navchiro" class="nav nav-tabs" role="tablist">
<li class="nav-item" role="presentation">
Expand Down Expand Up @@ -2526,5 +2526,4 @@
svgFit(false);

</script>
<script type="text/javascript" src="{{ t.config.protocol }}{{ t.config.host }}{{ t.config.urlHostSuffixe }}/js/module/formsScripts/chiroConsult.js"></script>

<script type="text/javascript" src="{{ t.config.protocol }}{{ t.config.host }}{{ t.config.urlHostSuffixe }}/js/module/formsScripts/chiroConsult.js?{{ modules.chiro }}"></script>
12 changes: 6 additions & 6 deletions templates/chiro/patient/patient.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@
</script>

{{ parent() }}
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/thirdparty/tinymce/tinymce/tinymce.min.js"></script>
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/thirdparty/tinymce/tinymce/jquery.tinymce.min.js"></script>
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/thirdparty/mattbryson/TouchSwipe-Jquery-Plugin/jquery.touchSwipe.min.js"></script>
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/thirdparty/tinymce/tinymce/tinymce.min.js?{{ modules.base }}"></script>
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/thirdparty/tinymce/tinymce/jquery.tinymce.min.js?{{ modules.base }}"></script>
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/thirdparty/mattbryson/TouchSwipe-Jquery-Plugin/jquery.touchSwipe.min.js?{{ modules.base }}"></script>

{# JS général du dossier patient #}
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/js/patient.js"></script>
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/js/patient.js?{{ modules.base }}"></script>

{# JS commun au formulaire de consultation du module #}
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/js/module/commonBase.js"></script>
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/js/module/commonBase.js?{{ modules.base }}"></script>

{# JS spécifiques des formulaires présents à l'affichage initial de la page #}
{% for i in page.listeForms %}
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/js/module/formsScripts/{{ i }}.js"></script>
<script defer src="{{ config.protocol }}{{ config.host }}{{ config.urlHostSuffixe }}/js/module/formsScripts/{{ i }}.js?{{ modules.chiro }}"></script>
{% endfor %}

<style>
Expand Down

0 comments on commit 3e48373

Please sign in to comment.