Skip to content

Commit 5bf5241

Browse files
committed
Add the patch that we submitted to the public jQuery-UI repository here:
jquery/jquery-ui#1762
1 parent d45cf46 commit 5bf5241

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/assets/javascripts/jquery-ui/widgets/sortable.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,20 +282,20 @@ return $.widget( "ui.sortable", $.ui.mouse, {
282282
$( "<style>*{ cursor: " + o.cursor + " !important; }</style>" ).appendTo( body );
283283
}
284284

285+
if ( o.zIndex ) { // zIndex option
286+
if ( this.helper.css( "zIndex" ) ) {
287+
this._storedZIndex = this.helper.css( "zIndex" );
288+
}
289+
this.helper.css( "zIndex", o.zIndex );
290+
}
291+
285292
if ( o.opacity ) { // opacity option
286293
if ( this.helper.css( "opacity" ) ) {
287294
this._storedOpacity = this.helper.css( "opacity" );
288295
}
289296
this.helper.css( "opacity", o.opacity );
290297
}
291298

292-
if ( o.zIndex ) { // zIndex option
293-
if ( this.helper.css( "zIndex" ) ) {
294-
this._storedZIndex = this.helper.css( "zIndex" );
295-
}
296-
this.helper.css( "zIndex", o.zIndex );
297-
}
298-
299299
//Prepare scrolling
300300
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
301301
this.scrollParent[ 0 ].tagName !== "HTML" ) {

0 commit comments

Comments
 (0)