Commit 301a0ae0 authored by Akikonata's avatar Akikonata

fixed IE bug

parent df60240f
......@@ -55,11 +55,17 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
return iev;
};
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' );
winname.document.open( urltype, 'replace' );
winname.document.writeln( d );
winname.document.execCommand( 'saveas', '', filename );
winname.close();
var iframe = document.createElement( 'iframe' );
iframe.style.display = 'none';
document.body.appendChild( iframe );
iframe.contentDocument.open( urltype, 'replace' );
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 ) {
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