diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-03-07 12:55:00 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-03-07 12:55:00 -0500 |
commit | b9be6bb7ad107fd48b28e31df972b2037c47c2cb (patch) | |
tree | 47ce4f47aaee55bc6deb082b2e6ea189de6b5ad8 /ui | |
parent | ca0b4b8a6c6a687866ea27a992570648e9295721 (diff) | |
download | jquery-ui-b9be6bb7ad107fd48b28e31df972b2037c47c2cb.tar.gz jquery-ui-b9be6bb7ad107fd48b28e31df972b2037c47c2cb.zip |
Sortable: Copy the src of the original item when creating a placeholder from an image. Fixes #5129 - Sortable: Unable to use an image as a placeholder in Firefox.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.sortable.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js index f095ce9c5..93c6cccc5 100644 --- a/ui/jquery.ui.sortable.js +++ b/ui/jquery.ui.sortable.js @@ -762,6 +762,8 @@ $.widget("ui.sortable", $.ui.mouse, { // width of the table (browsers are smart enough to // handle this properly) element.append( "<td colspan='99'> </td>" ); + } else if ( nodeName === "img" ) { + element.attr( "src", that.currentItem.attr( "src" ) ); } if ( !className ) { |