Fixed error with setting image url

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@582 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Kevin Kwok
2009-09-04 23:13:15 +00:00
parent 83df0e1403
commit f349b4e91f
2 changed files with 5 additions and 2 deletions

View File

@@ -249,7 +249,7 @@ function svg_edit_setup() {
$('#text').focus( function(){ textBeingEntered = true; } );
$('#text').blur( function(){ textBeingEntered = false; } );
$('#image_url').blur(function(){ svgCanvas.setImageURL(this.value); });
// bind the selected event to our function that handles updates to the UI
svgCanvas.bind("selected", selectedChanged);
@@ -306,6 +306,9 @@ function svg_edit_setup() {
svgCanvas.setTextContent(this.value);
});
$('#image_url').keyup(function(){
svgCanvas.setImageURL(this.value);
});
$('.attr_changer').change(function() {
var attr = this.getAttribute("alt");

View File

@@ -2839,7 +2839,7 @@ function BatchCommand(text) {
elem = canvas.quickClone(elem);
} else if (attr == "#href") {
var xlinkNS="http://www.w3.org/1999/xlink";
elem.setAttributeNS(xlinkNS, "href", val);
elem.setAttributeNS(xlinkNS, "href", newValue);
}
else elem.setAttribute(attr, newValue);
selectedBBoxes[i] = this.getBBox(elem);