Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ui/jquery.ui.sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ $.widget("ui.sortable", $.ui.mouse, {
this._setContainment();

if(o.cursor) { // cursor option
if ($('body').css("cursor")) this._storedCursor = $('body').css("cursor");
$('body').css("cursor", o.cursor);
if (this.helper.css("cursor")) this._storedCursor = this.helper.css("cursor");
this.helper.css("cursor", o.cursor);
}

if(o.opacity) { // opacity option
Expand Down Expand Up @@ -1017,7 +1017,7 @@ $.widget("ui.sortable", $.ui.mouse, {
}

//Do what was originally in plugins
if(this._storedCursor) $('body').css("cursor", this._storedCursor); //Reset cursor
if(this._storedCursor) this.helper.css("cursor", this._storedCursor); //Reset cursor
if(this._storedOpacity) this.helper.css("opacity", this._storedOpacity); //Reset opacity
if(this._storedZIndex) this.helper.css("zIndex", this._storedZIndex == 'auto' ? '' : this._storedZIndex); //Reset z-index

Expand Down