From 1ef6188da353a97654f226405b142d8d70f7e580 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Wed, 18 Aug 2010 15:17:41 +0000 Subject: [PATCH] Fixed issues 491 and 649 git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1668 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 978c16c2..efa9ddef 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -472,7 +472,7 @@ if(type == 'prompt') { var input = $('').prependTo(btn_holder); input.val(defText || ''); - input.bind('keydown', 'return', function() {ok.click();}); + input.bind('keyup', 'return', function() {ok.click();}); } if(type == 'process') { @@ -2664,7 +2664,6 @@ if(size == curPrefs.size && !force) return; // return; // var elems = $('.tool_button, .push_button, .tool_button_current, .disabled, .icon_label, #url_notice, #tool_open'); - console.log('size', size); var sel_toscale = '#tools_top .toolset, #editor_panel > *, #history_panel > *,\ #main_button, #tools_left > *, #path_node_panel > *, #multiselected_panel > *,\ @@ -3120,7 +3119,7 @@ // Test for embedImage support (use timeout to not interfere with page load) setTimeout(function() { - svgCanvas.embedImage('images/logo.png', function(datauri) { + svgCanvas.embedImage(curConfig.imgPath + 'logo.png', function(datauri) { if(!datauri) { // Disable option $('#image_save_opts [value=embed]').attr('disabled','disabled');