caboose-cms 0.8.36 → 0.8.37
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 +19 -3
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5553dcb87bfffa33afeb38413e06139408b2fca5
|
4
|
+
data.tar.gz: be19b6c314a15b6d21383fa97501c3db1b3af38a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18ab34a8272e6fbfb4d801679e592efaf454798527ff54e1b2f4358713b525660198a9c82a1f97d1fb8afbfc86206661e85e520b6c05731dd9b372dbd84fcc2c
|
7
|
+
data.tar.gz: c7c05847ef25b9249d6ecf1bddcd5c040d37013084051a5304dce776aba83daa8abc9df47d8f73a0cd809414fc52e321b82313fcf726bd193eb8585c568a146d
|
@@ -90,7 +90,7 @@ IndexTable.prototype = {
|
|
90
90
|
after_print: false,
|
91
91
|
table_class: 'data',
|
92
92
|
allow_export: false,
|
93
|
-
|
93
|
+
export_urls: false,
|
94
94
|
|
95
95
|
//============================================================================
|
96
96
|
// End of parameters
|
@@ -700,8 +700,24 @@ IndexTable.prototype = {
|
|
700
700
|
$.each(p, function(k,v) {
|
701
701
|
if (k != '[object Object]') qs.push('' + k + '=' + encodeURIComponent(v));
|
702
702
|
});
|
703
|
-
var url = that.export_url ? that.export_url : that.base_url + '/export.csv';
|
704
|
-
|
703
|
+
//var url = that.export_url ? that.export_url : that.base_url + '/export.csv';
|
704
|
+
|
705
|
+
var urls = that.export_urls ? that.export_urls : { "Export": that.base_url + '/export.csv' };
|
706
|
+
|
707
|
+
if (urls.length == 1)
|
708
|
+
window.location = url + '?' + qs.join('&');
|
709
|
+
else
|
710
|
+
{
|
711
|
+
var div = $('<div/>').addClass('note')
|
712
|
+
.append($('<p/>').append('Which export would you like to run?'));
|
713
|
+
var p = $('<p/>');
|
714
|
+
$.each(urls, function(name, url) {
|
715
|
+
p.append($('<input/>').attr('type', 'button').val(name).click(function(e) { window.location = url + '?' + qs.join('&'); })).append(' ');
|
716
|
+
});
|
717
|
+
div.append(p);
|
718
|
+
div.append($('<p/>').append($('<input/>').attr('type', 'button').val('Cancel').click(function(e) { that.hide_message(); })));
|
719
|
+
that.show_message(div);
|
720
|
+
}
|
705
721
|
},
|
706
722
|
|
707
723
|
pager_div: function(summary)
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|