Fixed issues 491 and 649

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1668 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-08-18 15:17:41 +00:00
parent 23851a90a8
commit 1ef6188da3
1 changed files with 2 additions and 3 deletions

View File

@ -472,7 +472,7 @@
if(type == 'prompt') { if(type == 'prompt') {
var input = $('<input type="text">').prependTo(btn_holder); var input = $('<input type="text">').prependTo(btn_holder);
input.val(defText || ''); input.val(defText || '');
input.bind('keydown', 'return', function() {ok.click();}); input.bind('keyup', 'return', function() {ok.click();});
} }
if(type == 'process') { if(type == 'process') {
@ -2664,7 +2664,6 @@
if(size == curPrefs.size && !force) return; if(size == curPrefs.size && !force) return;
// return; // return;
// var elems = $('.tool_button, .push_button, .tool_button_current, .disabled, .icon_label, #url_notice, #tool_open'); // 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 > *,\ var sel_toscale = '#tools_top .toolset, #editor_panel > *, #history_panel > *,\
#main_button, #tools_left > *, #path_node_panel > *, #multiselected_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) // Test for embedImage support (use timeout to not interfere with page load)
setTimeout(function() { setTimeout(function() {
svgCanvas.embedImage('images/logo.png', function(datauri) { svgCanvas.embedImage(curConfig.imgPath + 'logo.png', function(datauri) {
if(!datauri) { if(!datauri) {
// Disable option // Disable option
$('#image_save_opts [value=embed]').attr('disabled','disabled'); $('#image_save_opts [value=embed]').attr('disabled','disabled');