Commit 748e8d61 authored by Akikonata's avatar Akikonata

removed "

parent 9f71d9fd
......@@ -11,7 +11,7 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
value: [],
autowidthitem: [],
enabledRecord: false,
enabledSelected:false
enabledSelected: false
},
$combox = null,
comboboxWidget = null;
......@@ -81,7 +81,6 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
}
} else if ( data && data.then ) {
data.then( function ( url ) {
console.log( url );
if ( ie_ver() > 0 ) {
//doSave( 'application/base64', url.replace( 'image/octet-stream,', '' ), filename );
} else {
......
......@@ -2,6 +2,7 @@ KityMinder.registerProtocal( "png", function () {
function loadImage( url, callback ) {
var image = new Image();
image.onload = callback;
console.log( url );
image.src = url;
}
......@@ -27,7 +28,7 @@ KityMinder.registerProtocal( "png", function () {
ctx = canvas.getContext( '2d' ),
blob, DomURL, url, img, finishCallback;
bgUrl = bgUrl.replace( /"/g, '' );
renderContainer.translate( -renderBox.x, -renderBox.y );
svgXml = km.getPaper().container.innerHTML;
......@@ -73,7 +74,6 @@ KityMinder.registerProtocal( "png", function () {
var url = canvas.toDataURL( 'png' );
return url.replace( 'image/png', 'image/octet-stream' );
}
loadImage( url, function () {
var svgImage = this;
loadImage( bgUrl, function () {
......
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