Commit 301a0ae0 authored by Akikonata's avatar Akikonata

fixed IE bug

parent df60240f
...@@ -55,11 +55,17 @@ KM.registerToolbarUI( 'saveto', function ( name ) { ...@@ -55,11 +55,17 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
return iev; return iev;
}; };
var doSave = function ( urltype, d, filename ) { var doSave = function ( urltype, d, filename ) {
var winname = window.open( '', '_blank', 'height=0,width=0,toolbar=no,menubar=no,scrollbars=no,resizable=on,location=no,status=no' ); var iframe = document.createElement( 'iframe' );
winname.document.open( urltype, 'replace' ); iframe.style.display = 'none';
winname.document.writeln( d ); document.body.appendChild( iframe );
winname.document.execCommand( 'saveas', '', filename ); iframe.contentDocument.open( urltype, 'replace' );
winname.close(); iframe.contentDocument.writeln( d );
iframe.contentDocument.execCommand( 'saveas', '', filename );
// var winname = window.open( '', '_blank', 'height=0,width=0,toolbar=no,menubar=no,scrollbars=no,resizable=on,location=no,status=no' );
// winname.document.open( urltype, 'replace' );
// winname.document.writeln( d );
// winname.document.execCommand( 'saveas', '', filename );
// winname.close();
}; };
comboboxWidget.on( 'comboboxselect', function ( evt, res ) { comboboxWidget.on( 'comboboxselect', function ( evt, res ) {
var data = me.exportData( res.value ); var data = me.exportData( res.value );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment