mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
2012-06-15 Vanessa Gil <vanessa.gil@artica.es>
* operation/events/events.php: Show success message when you delete an event. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6556 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
45641e2d38
commit
b5918f3764
@ -1,3 +1,8 @@
|
|||||||
|
2012-06-15 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
|
* operation/events/events.php: Show success message
|
||||||
|
when you delete an event.
|
||||||
|
|
||||||
2012-06-14 Miguel de Dios <miguel.dedios@artica.es>
|
2012-06-14 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_html.php, include/functions_reporting.php,
|
* include/functions_html.php, include/functions_reporting.php,
|
||||||
|
@ -175,6 +175,7 @@ if (is_ajax ()) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$offset = (int) get_parameter ("offset", 0);
|
$offset = (int) get_parameter ("offset", 0);
|
||||||
$ev_group = (int) get_parameter ("ev_group", 0); //0 = all
|
$ev_group = (int) get_parameter ("ev_group", 0); //0 = all
|
||||||
$event_type = get_parameter ("event_type", ''); // 0 all
|
$event_type = get_parameter ("event_type", ''); // 0 all
|
||||||
@ -295,6 +296,11 @@ else {
|
|||||||
echo "</h2>";
|
echo "</h2>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Error div for ajax messages
|
||||||
|
echo "<div id='show_message_error'>";
|
||||||
|
echo "</div>";
|
||||||
|
|
||||||
|
|
||||||
if (($section == 'validate') && ($ids[0] == -1)) {
|
if (($section == 'validate') && ($ids[0] == -1)) {
|
||||||
$section = 'list';
|
$section = 'list';
|
||||||
ui_print_error_message (__('No events selected'));
|
ui_print_error_message (__('No events selected'));
|
||||||
@ -668,12 +674,12 @@ $(document).ready( function() {
|
|||||||
"similars" : <?php echo ($group_rep ? 1 : 0) ?>
|
"similars" : <?php echo ($group_rep ? 1 : 0) ?>
|
||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
if (data == "ok")
|
if (data == "ok") {
|
||||||
$tr.remove ();
|
$tr.remove ();
|
||||||
|
$('#show_message_error').html('<h3 class="suc"> <?php echo __('Successfully delete'); ?> </h3>');
|
||||||
|
}
|
||||||
else
|
else
|
||||||
$("#result")
|
$('#show_message_error').html('<h3 class="error"> <?php echo __('Error deleting event'); ?> </h3>');
|
||||||
.showMessage ("<?php echo __('Could not be deleted')?>")
|
|
||||||
.addClass ("error");
|
|
||||||
},
|
},
|
||||||
"html"
|
"html"
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user