Fix last bit of Issue 12: Show move cursor when hovering over visible elements in Select mode

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@61 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-06-08 02:55:15 +00:00
parent 01fde3a807
commit 7103e25a2f
2 changed files with 3 additions and 0 deletions

View File

@ -116,6 +116,7 @@
<div id="workarea">
<style id="styleoverrides" type="text/css"></style>
<div id="svgcanvas">
</div>

View File

@ -119,6 +119,7 @@ function svg_edit_setup() {
// - removes the tool_button_current class from whatever tool currently has it
// - adds the tool_button_current class to the button passed in
var toolButtonClick = function(button){
$('#styleoverrides').text('');
$('.tools_flyout').hide();
$('.tool_button_current').removeClass('tool_button_current').addClass('tool_button');
$(button).addClass('tool_button_current');
@ -129,6 +130,7 @@ function svg_edit_setup() {
$('#tool_select').click(function(){
toolButtonClick(this);
svgCanvas.setMode('select');
$('#styleoverrides').text('*{cursor:move} svg{cursor:auto}');
});
$('#tool_path').click(function(){