mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Merge pull request #4 from scottgonzalez/interactions
Draggable: Remove all ids when using helper: true.
This commit is contained in:
commit
bc921df349
10
ui/jquery.ui.draggable.js
vendored
10
ui/jquery.ui.draggable.js
vendored
@ -91,11 +91,11 @@ $.widget( "ui.draggable", {
|
|||||||
if ( this.options.helper ) {
|
if ( this.options.helper ) {
|
||||||
// clone
|
// clone
|
||||||
if ( this.options.helper === true ) {
|
if ( this.options.helper === true ) {
|
||||||
// If source element has an ID, change ID of helper to avoid overlap
|
this.dragEl = this.element.clone()
|
||||||
this.dragEl = this.element.clone();
|
.removeAttr( "id" )
|
||||||
if ( this.element.attr( "id" ) ) {
|
.find( "[id]" )
|
||||||
this.dragEl.attr( "id", this.element.attr( "id" ) + "-" + this.widgetName );
|
.removeAttr( "id" )
|
||||||
}
|
.end();
|
||||||
} else {
|
} else {
|
||||||
// TODO: figure out the signature for this; see #4957
|
// TODO: figure out the signature for this; see #4957
|
||||||
this.dragEl = $( this.options.helper() );
|
this.dragEl = $( this.options.helper() );
|
||||||
|
Loading…
Reference in New Issue
Block a user