Skip to content
Snippets Groups Projects
Commit 573afde5 authored by Myriam Delaruelle's avatar Myriam Delaruelle
Browse files

Bugfix #05: gestion du conflit avec jquery sur certains Moodles. Crédit @Elise

parent e7a3927c
Branches
Tags
No related merge requests found
...@@ -306,6 +306,7 @@ class view_competency_iena_competencies ...@@ -306,6 +306,7 @@ class view_competency_iena_competencies
<script type=\"text/javascript\" charset=\"utf8\" src=\"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js\"></script> <script type=\"text/javascript\" charset=\"utf8\" src=\"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js\"></script>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$.noConflict();
var table = $('#example').DataTable( { var table = $('#example').DataTable( {
\"language\": { \"language\": {
\"url\": \"https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json\", \"url\": \"https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json\",
......
...@@ -36,6 +36,7 @@ class view_competency_iena_competencies_mgmt ...@@ -36,6 +36,7 @@ class view_competency_iena_competencies_mgmt
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$.noConflict();
$('#tab_mgmt').DataTable({ $('#tab_mgmt').DataTable({
responsive: true, responsive: true,
......
...@@ -157,6 +157,7 @@ class view_competency_iena_competency_students ...@@ -157,6 +157,7 @@ class view_competency_iena_competency_students
<script type=\"text/javascript\" charset=\"utf8\" src=\"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js\"></script> <script type=\"text/javascript\" charset=\"utf8\" src=\"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js\"></script>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$.noConflict();
var table = $('#example').DataTable( { var table = $('#example').DataTable( {
\"language\": { \"language\": {
\"url\": \"https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json\" \"url\": \"https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json\"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment