Hai everybody.
if rotate =true
how to disbale draggable function
this is my code
but rotate working fine.
draggable function not disable and enable
anybody plz help me.
$('.planspace-image').draggable({});
//.resizable();
$('.upload_pic')
.resizable({
start: function(e, ui) {
},
resize: function(e, ui) {
},
stop: function(e, ui) {
//alert('resizing stopped');
}
});
var rotate = false;
var drag = true;
$('.rotate').mousedown(function()
{
// start:$('.upload_pic').mousedown(function(e) {
//$(document).mousedown(function(e) {
//alert("hai");
//e.preventDefault();
rotate=true;
$(document).mousemove(function(e2) {
$('.planspace-image').draggable({disable: true});
if(rotate == true )
{
rotateOnMouse(e2,$('.upload_pic'));
}
});
$(document).mouseup( function() {
rotate = false;
$('.planspace-image').draggable({disable: false});
});