X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/08eafa7ea0680c755be43561ba599c7ebf3b0fff..3b370c78b8ac967a56be8321bbd88618a52aa017:/project/static/js/jquery.resizable.js?ds=sidebyside diff --git a/project/static/js/jquery.resizable.js b/project/static/js/jquery.resizable.js index fafddc9e..c77c85b4 100644 --- a/project/static/js/jquery.resizable.js +++ b/project/static/js/jquery.resizable.js @@ -13,7 +13,7 @@ stop: function(event) { $.resizable.element.element.trigger('resizable:stop'); $(document).unbind('mousemove', $.resizable.drag).unbind('mouseup', $.resizable.stop) - .children('body').css({cursor: 'auto'}) + $('body').css('cursor', 'auto'); return false; } }; @@ -36,10 +36,11 @@ width: parseInt(element.css('width')) || element[0].scrollWidth || 0, mouseX: event.pageX, }; - $(document).mousemove($.resizable.drag).mouseup($.resizable.stop) - .children('body').css({cursor: 'se-resize'}); - event.stopImmediatePropagation(); - }).bind('dragstart', function(event) { event.preventDefault() }); + $(document).mousemove($.resizable.drag).mouseup($.resizable.stop); + $('body').css('cursor', 'col-resize'); + }).bind('dragstart', function(event) { event.preventDefault(); }) + .bind('drag', function(event) { event.preventDefault(); }) + .bind('draggesture', function(event) { event.preventDefault(); }); }; })(jQuery);