diff --git a/admin/index_m.html b/admin/index_m.html index 9359e26..6ba2c6b 100644 --- a/admin/index_m.html +++ b/admin/index_m.html @@ -45,6 +45,20 @@ }); + $('.btn_export').button({ + icons: {primary: 'ui-icon-circle-minus'}, + text: false + }) + .attr('title', _('Export to CSV')) + .css({width: 24, height: 24}) + .click(function () { + var id = $(this).data('table'); + // build text + var text = getExport(data, id); + $('#export-dlg').show(); + $('#export_textarea').val(text).trigger('select'); + document.execCommand('copy'); + }); //end zhongjin