Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/rte.js
diff options
context:
space:
mode:
authorUmair Khan <omerjerk@gmail.com>2014-03-03 20:47:11 +0400
committerUmair Khan <omerjerk@gmail.com>2014-03-03 22:11:41 +0400
commita0429a872c31231de7959d3db72491e4cb42a0b6 (patch)
tree9547e0dd538a119b12172d354b5286f03604365e /js/rte.js
parent908df2a24346f5463d9dff7c910bf513f92679fe (diff)
#4308 Stop edit routine form being submitted with enter
Signed-off-by: Umair Khan <omerjerk@gmail.com>
Diffstat (limited to 'js/rte.js')
-rw-r--r--js/rte.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/rte.js b/js/rte.js
index 205439b441..c42bd97ef3 100644
--- a/js/rte.js
+++ b/js/rte.js
@@ -714,7 +714,7 @@ RTE.ROUTINE = {
/*
* Define the function if the user presses enter
*/
- $('form.rte_form').live('keyup', function (event) {
+ $('form.rte_form').on('keyup', function (event) {
event.preventDefault();
if (event.keyCode === 13) {
/**
@@ -730,6 +730,7 @@ RTE.ROUTINE = {
// Routine executed successfully
PMA_ajaxRemoveMessage($msg);
PMA_slidingMessage(data.message);
+ $('form.rte_form').off('keyup');
$ajaxDialog.remove();
} else {
PMA_ajaxShowMessage(data.error, false);