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:
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user