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
diff options
context:
space:
mode:
authorHugues Peccatte <hugues.peccatte@gmail.com>2014-02-24 22:56:38 +0400
committerHugues Peccatte <hugues.peccatte@gmail.com>2014-02-24 22:56:38 +0400
commit1fa4cdf800e433146630d88ae3ef58d2372f1ad5 (patch)
tree2ad8a13ba7a0e88452e39609ff6309808e445f4d /js/db_qbe.js
parent4093df7b3225219b8c81e41dbb926dd99846c2d8 (diff)
Add confirmation before deletion.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'js/db_qbe.js')
-rw-r--r--js/db_qbe.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/db_qbe.js b/js/db_qbe.js
index 0a37b79aba..8407afc1ac 100644
--- a/js/db_qbe.js
+++ b/js/db_qbe.js
@@ -50,6 +50,11 @@ AJAX.registerOnload('db_qbe.js', function () {
* Ajax event handlers for 'Delete search'
*/
$("#deleteSearch").live('click', function (event) {
+ var question = $.sprintf(PMA_messages.strConfirmDeleteQBESearch, $("#searchId option:selected").text());
+ if (!confirm(question)) {
+ return false;
+ }
+
$('#action').val('delete');
});
}); \ No newline at end of file