update stroke-style in UI too

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@73 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Pavol Rusnak 2009-06-08 16:28:48 +00:00
parent e55567b892
commit 882c59d800
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}
}