update stroke-style in UI too
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@73 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
e55567b892
commit
882c59d800
|
@ -43,17 +43,19 @@ function svg_edit_setup() {
|
|||
opacity = (opacity*100)+" %";
|
||||
$('#group_opacity').val(opacity);
|
||||
|
||||
// update stroke-width
|
||||
var strokeWidth = elem.getAttribute("stroke-width");
|
||||
if (strokeWidth == null || strokeWidth == "") {
|
||||
strokeWidth = 1;
|
||||
}
|
||||
$('#stroke_width').val(strokeWidth);
|
||||
|
||||
|
||||
// update stroke-style
|
||||
var strokeDashArray = elem.getAttribute("stroke-dasharray");
|
||||
if (strokeDashArray == null || strokeDashArray == "") {
|
||||
strokeDashArray = "none";
|
||||
}
|
||||
$('#stroke_dasharray').val(strokeDashArray);
|
||||
$('#stroke_style').val(strokeDashArray);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue