diff --git a/VERSIONS_HOTLINE/133706 b/VERSIONS_HOTLINE/133706 new file mode 100644 index 0000000000000000000000000000000000000000..21115f0e6a543128495cc4d5cc660f19d2cbfa29 --- /dev/null +++ b/VERSIONS_HOTLINE/133706 @@ -0,0 +1 @@ + - ticket #133706 : L'autocompletion dans la boite de recherche simple ne fonctionne plus. \ No newline at end of file diff --git a/library/Class/ScriptLoader.php b/library/Class/ScriptLoader.php index ac39dad06aa93b21c7e192d3c7ac3081e6d340f0..59274ea4b3608f2ae784e0cf56a0a954c1619140 100644 --- a/library/Class/ScriptLoader.php +++ b/library/Class/ScriptLoader.php @@ -161,10 +161,10 @@ class Class_ScriptLoader { */ public function loadLeafletJS() { return $this - ->addAdminScript('leaflet-1.6.0/leaflet.js', true) + ->addAdminScript('leaflet-1.6.0/leaflet.js') ->addJQueryReady('L.Icon.Default.imagePath="' . URL_ADMIN_JS . 'leaflet-1.6.0/images/"') - ->addOPACPluginScript('leaflet-ajax-gh-pages/dist/leaflet.ajax.min.js', true) - ->addOPACPluginScript('leaflet.fullscreen-master/Leaflet.fullscreen.min.js', true) + ->addOPACPluginScript('leaflet-ajax-gh-pages/dist/leaflet.ajax.min.js') + ->addOPACPluginScript('leaflet.fullscreen-master/Leaflet.fullscreen.min.js') ->addOPACPluginStyleSheet('leaflet.fullscreen-master/leaflet.fullscreen.css') ->addStyleSheet(URL_ADMIN_JS . 'leaflet-1.6.0/leaflet.css'); } @@ -211,7 +211,7 @@ class Class_ScriptLoader { return $this; return $this - ->addScript(JQUERYUI, true) + ->addScript(JQUERYUI) ->addStyleSheet(JQUERYUI_CSS); } @@ -283,8 +283,8 @@ class Class_ScriptLoader { /** * @return ScriptLoader */ - public function addOPACPluginScript($script, $defer = false) { - return $this->addScript(BASE_URL."/public/opac/java/".$script, $defer); + public function addOPACPluginScript($script) { + return $this->addScript(BASE_URL."/public/opac/java/".$script); } diff --git a/tests/library/Class/ScriptLoaderTest.php b/tests/library/Class/ScriptLoaderTest.php index 9d9896307e3d86c3deb8137a9637959010d4ea40..d2f6d457e9fbb6069fa773c685824c90ac9acba3 100644 --- a/tests/library/Class/ScriptLoaderTest.php +++ b/tests/library/Class/ScriptLoaderTest.php @@ -131,7 +131,6 @@ class ScriptLoaderJsAndCssTest extends PHPUnit_Framework_TestCase { ->addScript('opac/cycle.min') ->addScript('opac/slides.min.js') ->addJQueryReady('alert()') - ->loadJQueryUI() ->html(); } @@ -192,13 +191,6 @@ class ScriptLoaderJsAndCssTest extends PHPUnit_Framework_TestCase { } - /** @test */ - public function jqueryUIShouldBeDeferred() { - $this->assertContains(JQUERYUI.'?v='.Class_ScriptLoader::getInstance()->getCacheHash().'" defer >', - $this->html); - } - - /** @test */ function inAjaxModeReadyScriptsShouldBeInSetTimeoutFunction() { $this->html = Class_ScriptLoader::getInstance()->beAjax()->html(); @@ -285,4 +277,4 @@ class ScriptLoaderNotificationsBarTest extends ModelTestCase { } } -?> +?> \ No newline at end of file