Skip to content

Commit 30751d4

Browse files
author
Alexandre CHENIEUX
committed
Add a button for "Export to CSV" + correction composer.json
1 parent c7ae63d commit 30751d4

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
],
2323
"require" : {
2424
"mouf/javascript.jquery.jquery" : ">=1.11",
25-
"mouf/database.querywriter" : "~3.0 | ~4.0",
25+
"mouf/database.querywriter" : "~3.0",
2626
"mouf/mvc.splash-common" : ">=4.0, <6.0",
2727
"mouf/utils.common.sortable-interface" : "~1.0",
2828
"mouf/html.utils.weblibrarymanager" : ">=2.0, <4.0",

js/evolugrid.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@
496496

497497

498498
if (extendedDescriptor.export_csv) {
499-
var span = $('<span/>').click(function(){$this.evolugrid('csvExport');});
500-
span.append($('<i/>').addClass('glyphicon glyphicon-file').attr('style', 'cursor:pointer;'));
501-
span.append("Export to CSV");
502-
pager.append(span);
499+
var button = $('<button class="btn btn-success">').click(function(){$this.evolugrid('csvExport');});
500+
button.append($('<i/>').addClass('glyphicon glyphicon-file').attr('style', 'cursor:pointer;'));
501+
button.append("Export to CSV");
502+
pager.append(button);
503503
}
504504

505505
// Number of all pages
@@ -738,10 +738,11 @@
738738
}
739739

740740
if (extendedDescriptor.export_csv) {
741-
var span = $('<span/>').click(function(){$this.evolugrid('csvExport');});
742-
span.append($('<i/>').addClass('glyphicon glyphicon-file').attr('style', 'cursor:pointer;'));
743-
span.append("Export to CSV");
744-
$this.append(span);
741+
var button = $('<button class="btn btn-success">').click(function(){$this.evolugrid('csvExport');});
742+
button.append($('<i/>').addClass('glyphicon glyphicon-file').attr('style', 'cursor:pointer;'));
743+
button.append("Export to CSV");
744+
pager.append(button);
745+
$this.append(button);
745746
}
746747

747748
if (init) {

0 commit comments

Comments
 (0)