From e02a152d0f1b9e2737ecf760898010f3f4745ccd Mon Sep 17 00:00:00 2001 From: Adrian Jones Date: Wed, 13 Oct 2010 23:22:29 +0000 Subject: [PATCH] Changed name and hid Show Libraries button when not relevant to avoid confusion git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1801 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/extensions/ext-imagelib.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/extensions/ext-imagelib.js b/editor/extensions/ext-imagelib.js index cb874694..5f8d7997 100644 --- a/editor/extensions/ext-imagelib.js +++ b/editor/extensions/ext-imagelib.js @@ -289,10 +289,11 @@ svgEditor.addExtension("imagelib", function() { var leftBlock = $('').css({position:'absolute',top:5,left:10}).appendTo(browser); - var back = $('').appendTo(leftBlock).click(function() { + var back = $('').appendTo(leftBlock).click(function() { frame.attr('src', 'about:blank').hide(); lib_opts.show(); header.text(all_libs); + back.hide(); }).css({ 'margin-right': 5 }); @@ -321,6 +322,7 @@ svgEditor.addExtension("imagelib", function() { frame.attr('src', opts.url).show(); header.text(opts.name); lib_opts.hide(); + back.show(); }).append('' + opts.description + ''); });