added move to top/bottom feature
reworked context panels git-svn-id: http://svg-edit.googlecode.com/svn/trunk@144 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -795,6 +795,26 @@ function SvgCanvas(c)
|
||||
}
|
||||
}
|
||||
|
||||
this.moveToTopSelectedElement = function() {
|
||||
if (selected != null) {
|
||||
var t = selected;
|
||||
t.parentNode.appendChild(t);
|
||||
}
|
||||
else {
|
||||
alert("Error! Nothing selected!");
|
||||
}
|
||||
}
|
||||
|
||||
this.moveToBottomSelectedElement = function() {
|
||||
if (selected != null) {
|
||||
var t = selected;
|
||||
t.parentNode.insertBefore(t, t.parentNode.firstChild);
|
||||
}
|
||||
else {
|
||||
alert("Error! Nothing selected!");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Static class for various utility functions
|
||||
|
||||
Reference in New Issue
Block a user