diff --git a/VERSIONS_HOTLINE/148836 b/VERSIONS_HOTLINE/148836 new file mode 100644 index 0000000000000000000000000000000000000000..b8104c1d90a4201fb0c04366593a5e7b87f01121 --- /dev/null +++ b/VERSIONS_HOTLINE/148836 @@ -0,0 +1 @@ + - correctif #148836 : Google Chrome : correction de l'affichage des exemplaires pouvant survenir dans la page notices \ No newline at end of file diff --git a/library/templates/Intonation/View/RenderAjax.php b/library/templates/Intonation/View/RenderAjax.php index bf379831a04a9ad8068f511b800aca7d0a9b141b..66351d80c899d24d90b0023af42d5c822bfa12d3 100644 --- a/library/templates/Intonation/View/RenderAjax.php +++ b/library/templates/Intonation/View/RenderAjax.php @@ -39,7 +39,6 @@ class Intonation_View_RenderAjax extends ZendAfi_View_Helper_BaseHelper { $url['inspector_gadget'] = 1; Class_ScriptLoader::getInstance() - ->beAjax() ->addJQueryReady(sprintf('$("#%s").load("%s", function() {%s});', $id, $this->view->url($url, null, true), diff --git a/tests/scenarios/Templates/TemplatesJumbotronTest.php b/tests/scenarios/Templates/TemplatesJumbotronTest.php index dd66352116350cc4c6347e0efae8397e09515edd..3bcb5413c815926a580520fef33581c9282d1829 100644 --- a/tests/scenarios/Templates/TemplatesJumbotronTest.php +++ b/tests/scenarios/Templates/TemplatesJumbotronTest.php @@ -42,7 +42,7 @@ class TemplatesRecordsDispatchItemsTest extends AbstractControllerTestCase { $this->dispatch('/record/items/id/1'); $this->assertXPathContentContains('//script', '.load("/noticeajax/resources/id/1", function() {initializePopups();setupAnchorsTarget();;$(\'.loading_icon\').parent().remove(); if ($(\'.document_items [data-ajax-content] > *\').length) { - return $(\'.document_items\').removeClass(\'d-none text-black-50 disabled\');}});}, 5);'); + return $(\'.document_items\').removeClass(\'d-none text-black-50 disabled\');}});}'); } @@ -51,7 +51,7 @@ class TemplatesRecordsDispatchItemsTest extends AbstractControllerTestCase { $this->dispatch('/record/items/id/1'); $this->assertXPathContentContains('//script', '.load("/noticeajax/has-author/id/1", function() {$(\'.loading_icon\').parent().remove(); if ($(\'.document_author [data-ajax-content] > *\').length) { - return $(\'.document_author\').removeClass(\'d-none text-black-50 disabled\');}});}, 5);'); + return $(\'.document_author\').removeClass(\'d-none text-black-50 disabled\');}});}'); } @@ -60,7 +60,7 @@ class TemplatesRecordsDispatchItemsTest extends AbstractControllerTestCase { $this->dispatch('/record/items/id/1'); $this->assertXPathContentContains('//script', '.load("/noticeajax/has-media/id/1", function() {$(\'.loading_icon\').parent().remove(); if ($(\'.document_media [data-ajax-content] > *\').length) { - return $(\'.document_media\').removeClass(\'d-none text-black-50 disabled\');}});}, 5);'); + return $(\'.document_media\').removeClass(\'d-none text-black-50 disabled\');}});}'); } @@ -128,4 +128,4 @@ class TemplatesRecordsDispatchItemsTest extends AbstractControllerTestCase { $this->dispatch('/noticeajax/has-media/id/1'); $this->assertEmpty($this->_response->getBody()); } -} \ No newline at end of file +}