2010-09-27 Sergio Martin <sergio.martin@artica.es>

* operation/events/events_list.php: Added confirm popup
	to delete event button



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3301 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-09-27 08:12:57 +00:00
parent 41f8a941c8
commit f88c915db8
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-09-27 Sergio Martin <sergio.martin@artica.es>
* operation/events/events_list.php: Added confirm popup
to delete event button
2010-09-27 Sergio Martin <sergio.martin@artica.es>
* godmode/reporting/graph_builder.php: Fixed typo bug

View File

@ -386,7 +386,7 @@ foreach ($result as $event) {
// Delete event
if (give_acl ($config["id_user"], $event["id_grupo"], "IM") == 1) {
if($event['estado'] != 2) {
$data[4] .= '<a class="delete_event" href="#" onclick="return false" id="delete-'.$event['id_evento'].'">';
$data[4] .= '<a class="delete_event" href="#" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;" id="delete-'.$event['id_evento'].'">';
$data[4] .= print_image ("images/cross.png", true,
array ("title" => __('Delete event')));
$data[4] .= '</a>&nbsp;';