Minor tightening of code
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@323 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
a09a3ecc69
commit
0e45cc46ef
|
@ -17,8 +17,6 @@ function svg_edit_setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// used to make the flyouts stay ont he screen longer the very first time
|
// used to make the flyouts stay ont he screen longer the very first time
|
||||||
var ellipse_flyout_speed = 'slow';
|
|
||||||
var rect_flyout_speed = 'slow';
|
|
||||||
var textBeingEntered = false;
|
var textBeingEntered = false;
|
||||||
var selectedElement = null;
|
var selectedElement = null;
|
||||||
var multiselected = false;
|
var multiselected = false;
|
||||||
|
@ -665,24 +663,18 @@ function svg_edit_setup() {
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#tools_rect_show').mousedown(function(evt){
|
$('#tools_rect_show').mousedown(function(evt){
|
||||||
$('#tools_rect').show(rect_flyout_speed);
|
$('#tools_rect').show();
|
||||||
rect_flyout_speed = '';
|
|
||||||
// this prevents the 'image drag' behavior in Firefox
|
// this prevents the 'image drag' behavior in Firefox
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
});
|
});
|
||||||
$('#tools_rect').mouseleave(function() {
|
$('#tools_rect').mouseleave(function(){$('#tools_rect').fadeOut();});
|
||||||
$('#tools_rect').fadeOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#tools_ellipse_show').mousedown(function(evt){
|
$('#tools_ellipse_show').mousedown(function(evt){
|
||||||
$('#tools_ellipse').show(ellipse_flyout_speed);
|
$('#tools_ellipse').show();
|
||||||
ellipse_flyout_speed = '';
|
|
||||||
// this prevents the 'image drag' behavior in Firefox
|
// this prevents the 'image drag' behavior in Firefox
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
});
|
});
|
||||||
$('#tools_ellipse').mouseleave(function() {
|
$('#tools_ellipse').mouseleave(function() {$('#tools_ellipse').fadeOut();});
|
||||||
$('#tools_ellipse').fadeOut();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.tool_flyout_button').mouseover(function() {
|
$('.tool_flyout_button').mouseover(function() {
|
||||||
$(this).addClass('tool_flyout_button_current');
|
$(this).addClass('tool_flyout_button_current');
|
||||||
|
|
Loading…
Reference in New Issue