Commit d81762e3 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction problèmes JS

parent 17133d17
Loading
Loading
Loading
Loading
+2 −2
Changes for composer.json: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -13,8 +13,8 @@
        "laminas/laminas-cli"              : "1.11.0",
        "symfony/process"                  : "7.2.0",

        "twbs/bootstrap"                   : "5.3.3",
        "components/jquery"                : "3.6.0",
        "twbs/bootstrap"                   : "5.0.2",
        "components/jquery"                : "3.7.1",
        "webfontkit/open-sans"             : "1.0.0",
        "components/font-awesome"          : "6.5.2",
        "tinymce/tinymce"                  : "7.6.0",
+13 −13
Changes for composer.lock: 13 added lines, 13 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
        "This file is @generated automatically"
    ],
    "content-hash": "44107639182174774e907aa78b2f9258",
    "content-hash": "b48ca2b6015199df1ca7bdbd689465c8",
    "packages": [
        {
            "name": "apereo/phpcas",
@@ -234,16 +234,16 @@
        },
        {
            "name": "components/jquery",
            "version": "3.6.0",
            "version": "v3.7.1",
            "source": {
                "type": "git",
                "url": "https://github.com/components/jquery.git",
                "reference": "6cf38ee1fd04b6adf8e7dda161283aa35be818c3"
                "reference": "8edc7785239bb8c2ad2b83302b856a1d61de60e7"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/components/jquery/zipball/6cf38ee1fd04b6adf8e7dda161283aa35be818c3",
                "reference": "6cf38ee1fd04b6adf8e7dda161283aa35be818c3",
                "url": "https://api.github.com/repos/components/jquery/zipball/8edc7785239bb8c2ad2b83302b856a1d61de60e7",
                "reference": "8edc7785239bb8c2ad2b83302b856a1d61de60e7",
                "shasum": ""
            },
            "type": "component",
@@ -279,7 +279,7 @@
                "source": "https://github.com/jquery/jquery",
                "wiki": "http://docs.jquery.com/"
            },
            "time": "2021-03-20T19:13:42+00:00"
            "time": "2023-09-22T01:43:46+00:00"
        },
        {
            "name": "connecteur-ose/actul",
@@ -7618,16 +7618,16 @@
        },
        {
            "name": "twbs/bootstrap",
            "version": "v5.3.3",
            "version": "v5.0.2",
            "source": {
                "type": "git",
                "url": "https://github.com/twbs/bootstrap.git",
                "reference": "6e1f75f420f68e1d52733b8e407fc7c3766c9dba"
                "reference": "688bce4fa695cc360a0d084e34f029b0c192b223"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/twbs/bootstrap/zipball/6e1f75f420f68e1d52733b8e407fc7c3766c9dba",
                "reference": "6e1f75f420f68e1d52733b8e407fc7c3766c9dba",
                "url": "https://api.github.com/repos/twbs/bootstrap/zipball/688bce4fa695cc360a0d084e34f029b0c192b223",
                "reference": "688bce4fa695cc360a0d084e34f029b0c192b223",
                "shasum": ""
            },
            "replace": {
@@ -7662,9 +7662,9 @@
            ],
            "support": {
                "issues": "https://github.com/twbs/bootstrap/issues",
                "source": "https://github.com/twbs/bootstrap/tree/v5.3.3"
                "source": "https://github.com/twbs/bootstrap/tree/v5.0.2"
            },
            "time": "2024-02-20T15:14:29+00:00"
            "time": "2021-06-22T18:29:16+00:00"
        },
        {
            "name": "unicaen/app",
@@ -11179,6 +11179,6 @@
    "platform": {
        "php": ">=8.2"
    },
    "platform-dev": [],
    "platform-dev": {},
    "plugin-api-version": "2.6.0"
}
+3 −1
Changes for public/js/app.js: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -51,7 +51,9 @@ $(function ()

    /* Services */
    WidgetInitializer.add('enseignements', 'enseignements');
    WidgetInitializer.add('service-form', 'serviceForm');
    WidgetInitializer.add('service-form', 'serviceForm', function(){return
        console.log('load serviceForm');
    });
    WidgetInitializer.add('service-filtres', 'serviceFiltres');

    /* Service référentiel */
+4 −2
Changes for public/js/widget-initializer.js: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -28,8 +28,7 @@ WidgetInitializer = {
                WidgetInitializer.widgets[className].initialized = true;
            }
            if (widgetName) {
                widgets.each(function ()
                {
                widgets.each(function () {
                    try {
                        $(this)[widgetName]($(this).data('widget'));
                    } catch (e) {
@@ -83,6 +82,9 @@ WidgetInitializer = {
        window.addEventListener("intranavigator.change", (event) => {
            that.run();
        });
        $(document).ajaxSuccess(function () {
            that.run();
        });
    },

    includeCss: function (fileName)