Merge remote-tracking branch 'origin/QA_4_1' into QA_4_1
This commit is contained in:
commit
21c5bcf676
24
js/rte.js
24
js/rte.js
@ -711,6 +711,30 @@ RTE.ROUTINE = {
|
||||
$ajaxDialog.find('input.datefield, input.datetimefield').each(function () {
|
||||
PMA_addDatepicker($(this).css('width', '95%'));
|
||||
});
|
||||
/*
|
||||
* Define the function if the user presses enter
|
||||
*/
|
||||
$('form.rte_form').live('submit', function (event) {
|
||||
event.preventDefault();
|
||||
/**
|
||||
* @var data Form data to be sent in the AJAX request
|
||||
*/
|
||||
var data = $(this).serialize();
|
||||
$msg = PMA_ajaxShowMessage(
|
||||
PMA_messages.strProcessingRequest
|
||||
);
|
||||
var url = $(this).attr('action');
|
||||
$.post(url, data, function (data) {
|
||||
if (data.success === true) {
|
||||
// Routine executed successfully
|
||||
PMA_ajaxRemoveMessage($msg);
|
||||
PMA_slidingMessage(data.message);
|
||||
$ajaxDialog.remove();
|
||||
} else {
|
||||
PMA_ajaxShowMessage(data.error, false);
|
||||
}
|
||||
});
|
||||
});
|
||||
} else {
|
||||
// Routine executed successfully
|
||||
PMA_slidingMessage(data.message);
|
||||
|
||||
@ -1578,7 +1578,7 @@ function PMA_RTN_getExecuteForm($routine)
|
||||
// Create the output
|
||||
$retval = "";
|
||||
$retval .= "<!-- START ROUTINE EXECUTE FORM -->\n\n";
|
||||
$retval .= "<form action='db_routines.php' method='post' class='rte_form'>\n";
|
||||
$retval .= "<form action='db_routines.php' method='post' class='rte_form ajax' onsubmit='return false'>\n";
|
||||
$retval .= "<input type='hidden' name='item_name'\n";
|
||||
$retval .= " value='{$routine['item_name']}' />\n";
|
||||
$retval .= "<input type='hidden' name='item_type'\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user