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:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-05-05 11:13:28 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-05-05 11:13:28 +0300
commita272cde287e92b922b97cefd0010a849577b85f4 (patch)
treedf5c6a355dfb28bf3364a44df12872e4e2def70d /js/rte.js
parentec7ba6a9de0c6c8aaa6868fb1771d8c5d05d558e (diff)
Multiple export
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/rte.js')
-rw-r--r--js/rte.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/js/rte.js b/js/rte.js
index 77658b579f..37b0fd15a3 100644
--- a/js/rte.js
+++ b/js/rte.js
@@ -110,8 +110,15 @@ RTE.COMMON = {
exportDialog: function ($this) {
var $msg = PMA_ajaxShowMessage();
- // Fire the ajax request straight away
- $.get($this.attr('href'), {'ajax_request': true}, function (data) {
+ if ($this.hasClass('mult_submit')) {
+ var $form = $this.parents('form');
+ var submitData = $form.serialize() + '&ajax_request=true&export_item=1';
+ $.get($form.attr('action'), submitData, showExport);
+ } else {
+ $.get($this.attr('href'), {'ajax_request': true}, showExport);
+ }
+
+ function showExport(data) {
if (data.success === true) {
PMA_ajaxRemoveMessage($msg);
/**
@@ -153,7 +160,7 @@ RTE.COMMON = {
} else {
PMA_ajaxShowMessage(data.error, false);
}
- }); // end $.get()
+ }; // end $.get()
}, // end exportDialog()
editorDialog: function (is_new, $this) {
var that = this;
@@ -806,6 +813,12 @@ $(function () {
dialog.exportDialog($(this));
}); // end $(document).on()
+ $(document).on('click', '#rteListForm.ajax .mult_submit[value="export"]', function (event) {
+ event.preventDefault();
+ var dialog = new RTE.object();
+ dialog.exportDialog($(this));
+ }); // end $(document).on()
+
/**
* Attach Ajax event handlers for Drop functionality
* of Routines, Triggers and Events.