Skip to content
Snippets Groups Projects
Commit 4d90a726 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

Merge branch 'hotline#38299_confirm_should_be_place_on_anchor_not_on_img' into 'stable'

Hotline#38299 confirm should be place on anchor not on img

See merge request !1483
parents 2ee2494d 50d1c43f
Branches
Tags
9 merge requests!1587Master,!1553Master,!1519Master,!1505Stable,!1502Master,!1501Stable,!1491Master,!1490Hotline master,!1489Stable
- ticket #38299 : Administration : Correction du bouton de suppression de boite pour toujours afficher la popup de confirmation
......@@ -112,9 +112,9 @@ class ZendAfi_View_Helper_FonctionsAdmin extends ZendAfi_View_Helper_BaseHelper
return $this->_tag('a',
$this->view->tagImg(URL_ADMIN_IMG . 'ico/del.gif',
['onclick' => $onclick,
'alt' => $label,
['alt' => $label,
'title' => $label]),
['href' => $url]);
['href' => $url,
'onclick' => $onclick]);
}
}
\ No newline at end of file
......@@ -71,7 +71,7 @@ class ZendAfi_View_Helper_Accueil_RechSimpleWithAdminTest extends ZendAfi_View_H
/** @test */
public function deleteBlockActionShouldBePresent() {
$this->assertLocalXPath('//a[contains(@href, "/admin/accueil/delete-block/id_module/1/division/1")]');
$this->assertLocalXPath('//a[contains(@href, "/admin/accueil/delete-block/id_module/1/division/1")][contains(@onclick, "return confirm(")]');
}
}
......
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