Skip to content
Snippets Groups Projects
Commit baae5455 authored by Laurent's avatar Laurent
Browse files

Merge branch...

Merge branch 'hotline#148836_infos_presence_document_affichage_des_exemplaires_sur_chrome' into 'master'

hotline #148836 Google Chrome : fix Intonation RenderAjax which should

See merge request !4339
parents fd1e3cfc 3e46a405
Branches
Tags
1 merge request!4339hotline #148836 Google Chrome : fix Intonation RenderAjax which should
Pipeline #16004 passed with stage
in 29 minutes and 27 seconds
- correctif #148836 : Google Chrome : correction de l'affichage des exemplaires pouvant survenir dans la page notices
\ No newline at end of file
......@@ -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),
......
......@@ -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
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment