Added jQuery UI and draggable component; Fixed issue 147: Ability to move the colorpicker around

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@698 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-09-23 18:15:29 +00:00
parent 9e70447b5d
commit 1c098d89cb
4 changed files with 28 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -352,6 +352,7 @@ span.zoom_tool {
position: absolute;
display: none;
background: #E8E8E8;
height: 350px;
}
#svg_editor .tools_flyout {

View File

@ -12,6 +12,7 @@
<!--script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script-->
<script type="text/javascript" src="js-hotkeys/jquery.hotkeys.min.js"></script>
<!--script type="text/javascript" src="js-hotkeys/jquery.hotkeys-0.7.9.js"></script-->
<script type="text/javascript" src="jquery-ui/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="jgraduate/jpicker-1.0.9.min.js"></script>
<script type="text/javascript" src="jgraduate/jquery.jgraduate.js"></script>
<!--script type="text/javascript" src="jgraduate/jquery.jgraduate.min.js"></script-->

View File

@ -951,7 +951,10 @@ function svg_edit_setup() {
was_none = true;
}
var pos = elem.position();
$('#color_picker').css({'left': pos.left, 'bottom': 50 - pos.top}).jGraduate(
$("#color_picker")
.draggable({cancel:'.jPicker_table,.jGraduate_lgPick'})
.css({'left': pos.left, 'bottom': 50 - pos.top})
.jGraduate(
{
paint: paint,
window: { pickerTitle: title },