caboose-cms 0.8.61 → 0.8.62
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/caboose/model/index_table.js +14 -14
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4106e491d93b523834ee2666e8b56318619b105
|
4
|
+
data.tar.gz: ed68ff328ca5bd231ebec43547d03135e17582ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 958a0609222e9d01efcdfb5c56de683cd193063df59d01cf3ce1e02df3f8efe74fcaf8d0d7d02525d87c10cdb59061653d1e106102f4bfa50b222bf1938e7601
|
7
|
+
data.tar.gz: 2529ba70074ed38ad461ab05ac478c0cdd4c1b95a74748a1cdf3ac3239df88f7accce80e6b5e402f5b12189ee5309384835102bc29c9b86799cf155857e3fb0a
|
@@ -90,16 +90,16 @@ IndexTable.prototype = {
|
|
90
90
|
after_print: false,
|
91
91
|
table_class: 'data',
|
92
92
|
allow_export: false,
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
93
|
+
exports: false, // Example:
|
94
|
+
// [
|
95
|
+
// {
|
96
|
+
// name: 'My Export',
|
97
|
+
// url: '<url that starts export process>',
|
98
|
+
// wait_for_processing: true,
|
99
|
+
// status_url: function(resp) { return resp.status_url; },
|
100
|
+
// ready: function(resp) { return resp.redirect_url; }
|
101
|
+
// }
|
102
|
+
// ]
|
103
103
|
|
104
104
|
//============================================================================
|
105
105
|
// End of parameters
|
@@ -716,9 +716,9 @@ IndexTable.prototype = {
|
|
716
716
|
};
|
717
717
|
|
718
718
|
var p = $('<p/>');
|
719
|
-
$.each(that.
|
720
|
-
that.
|
721
|
-
p.append($('<input/>').attr('type', 'button').val(that.
|
719
|
+
$.each(that.exports, function(i, h) {
|
720
|
+
that.exports[i] = $.extend({}, defaults, h);
|
721
|
+
p.append($('<input/>').attr('type', 'button').val(that.exports[i].name).click(function(e) { that.csv_export_start($(this).val()); })).append(' ');
|
722
722
|
});
|
723
723
|
|
724
724
|
var div = $('<div/>').addClass('note')
|
@@ -735,7 +735,7 @@ IndexTable.prototype = {
|
|
735
735
|
var p = that.pager_params();
|
736
736
|
|
737
737
|
var h = false;
|
738
|
-
$.each(that.
|
738
|
+
$.each(that.exports, function(i, h2) {
|
739
739
|
if (h2.name == name) { h = h2; return false; }
|
740
740
|
});
|
741
741
|
|
data/lib/caboose/version.rb
CHANGED