aboutsummaryrefslogtreecommitdiffstats
path: root/demos/real-world/layout/demo.js
diff options
context:
space:
mode:
Diffstat (limited to 'demos/real-world/layout/demo.js')
-rw-r--r--demos/real-world/layout/demo.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/demos/real-world/layout/demo.js b/demos/real-world/layout/demo.js
index 7b0ee732d..191bee24b 100644
--- a/demos/real-world/layout/demo.js
+++ b/demos/real-world/layout/demo.js
@@ -1,6 +1,5 @@
(function($){
function updateUpDown(sortable) {
- console.log(this, sortable)
$('dl:not(.ui-sortable-helper)', sortable)
.removeClass('first').removeClass('last')
.find('.up, .down').removeClass('disabled').end()
@@ -98,14 +97,17 @@
});
$('#components > dl').draggable({
connectToSortable: $els.not("#trashcan"),
- helper: 'clone'
+ helper: 'clone',
+ handle: 'dt'
})
});
$(window).bind('load',function(){
setTimeout(function(){
+ // fixes the weird scrolling in IE while killing the fade
+ $(document.body).css("height", "auto")
$('#overlay').fadeOut(function(){
- $('body').css('overflow', 'auto');
+ $(this).remove();
});
}, 500);
});