|
|
@ -1,4 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
function makeDragable(dragHandle, dragTarget) {
|
|
|
|
function makeDragable(dragHandle, dragTarget) {
|
|
|
|
var dragObj = null; //object to be moved
|
|
|
|
var dragObj = null; //object to be moved
|
|
|
|
var xOffset = 0; //used to prevent dragged object jumping to mouse location
|
|
|
|
var xOffset = 0; //used to prevent dragged object jumping to mouse location
|
|
|
@ -55,12 +55,8 @@ function makeDragable(dragHandle, dragTarget) {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// makeDragable('#shell_03header', '#shell_03');
|
|
|
|
makeDragable('#shell_03header', '#shell_03');
|
|
|
|
// makeDragable('#week_05header', '#week_05');
|
|
|
|
makeDragable('#week_05header', '#week_05');
|
|
|
|
|
|
|
|
|
|
|
|
// using jquery-ui
|
|
|
|
|
|
|
|
$("#shell_03").draggable({ handle: "#shell_03header" });
|
|
|
|
|
|
|
|
$("#week_05").draggable({handle: '#week_05header'});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|