Commit d580964c authored by Patrick Barroca's avatar Patrick Barroca 😁
Browse files

hotline #66702 : tell jquery.cycle to not set background color

parent cb056995
- ticket #66702 : Boite articles en diaporama : Correction de l'affichage d'un fond noir sur certains navigateurs.
\ No newline at end of file
......@@ -88,11 +88,12 @@ class ZendAfi_View_Helper_TagSlideshow extends Zend_View_Helper_HtmlElement {
* @return ZendAfi_View_Helper_Accueil_BibNumerique
*/
public function renderSlideShowScriptsOn($script_loader, $selector, $options=null) {
$cycle_options = array('pause' => 1,
'fx' => 'fade',
'animIn' => array('opacity' => 1),
'animOut' => array('opacity' => 0),
);
$cycle_options = ['cleartypeNoBg' => true,
'pause' => 1,
'fx' => 'fade',
'animIn' => ['opacity' => 1],
'animOut' => ['opacity' => 0]];
if (array_isset('op_transition', $this->_preferences)
&& in_array($this->_preferences['op_transition'], array_keys(self::getTransitionDefinitions())))
$cycle_options['fx'] = $this->_preferences['op_transition'];
......
......@@ -436,6 +436,7 @@ class NewsHelperWithThreeArticlesWorkflowActivatedUserAdminTest
'//div[@class="article_full_separator"]');
}
/** @test */
public function diaporamaTransitionShouldFallbackToFade() {
$this->assertContains('"fx":"fade"',
......@@ -443,6 +444,13 @@ class NewsHelperWithThreeArticlesWorkflowActivatedUserAdminTest
}
/** @test */
public function diaporamaShouldNotTryToSetBackgroundColor() {
$this->assertContains('"cleartypeNoBg":true',
Class_ScriptLoader::getInstance()->html());
}
/** @test **/
public function addNewsButtonShouldBeDisplay() {
$this->assertXPath($this->html,'//a[contains(@href,"admin/cms/add/id_module/12/id_cat/12")]',$this->html);
......
Markdown is supported
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