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

hotline #38299 fix delete block anchor to always ask before deletion

parent c5f1701e
Branches
Tags
10 merge requests!1587Master,!1553Master,!1519Master,!1505Stable,!1502Master,!1501Stable,!1491Master,!1490Hotline master,!1489Stable,!1483Hotline#38299 confirm should be place on anchor not on img
- 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