show Saved message in downloadify
This commit is contained in:
parent
169fee5298
commit
bb755d07bf
1 changed files with 6 additions and 3 deletions
|
|
@ -18,11 +18,14 @@ wn.tools.downloadify = function(data, roles, me) {
|
|||
return me.title + '.csv';
|
||||
},
|
||||
data: function(){
|
||||
return wn.to_csv(data);
|
||||
return wn.tools.to_csv(data);
|
||||
},
|
||||
swf: 'lib/js/lib/downloadify/downloadify.swf',
|
||||
downloadImage: 'lib/js/lib/downloadify/download.png',
|
||||
onComplete: function(){ msgobj.hide(); },
|
||||
onComplete: function(){
|
||||
msgobj.hide();
|
||||
msgprint("Saved.");
|
||||
},
|
||||
onCancel: function(){ msgobj.hide(); },
|
||||
onError: function(){ msgobj.hide(); },
|
||||
width: 100,
|
||||
|
|
@ -32,7 +35,7 @@ wn.tools.downloadify = function(data, roles, me) {
|
|||
});
|
||||
}
|
||||
|
||||
wn.to_csv = function(data) {
|
||||
wn.tools.to_csv = function(data) {
|
||||
var res = [];
|
||||
$.each(data, function(i, row) {
|
||||
row = $.map(row, function(col) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue