aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-03-07 12:55:00 -0500
committerScott González <scott.gonzalez@gmail.com>2013-03-07 12:55:00 -0500
commitb9be6bb7ad107fd48b28e31df972b2037c47c2cb (patch)
tree47ce4f47aaee55bc6deb082b2e6ea189de6b5ad8 /ui
parentca0b4b8a6c6a687866ea27a992570648e9295721 (diff)
downloadjquery-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.js2
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'>&#160;</td>" );
+ } else if ( nodeName === "img" ) {
+ element.attr( "src", that.currentItem.attr( "src" ) );
}
if ( !className ) {