Hi Riviera,
Thanks for replying.
Your assumption is correct, but i tried in my code, still no luck .
My code looks like this :
css:
.dragproxy {
position: absolute;
max-width: 300px;
}
.dragproxy .item {
list-style: none;
float: left;
}
.dragproxy img {
position: relative;
left: 5px;
background-color: gray !important;
}
.drag_image_opacity{
opacity: 0.5;
}
JS Code :
bindDragEvents: function() {
var that = this;
var container = $('#sortable');
var photo_length = 0;
var containerRegion = {
top: container.offset().top,
bottom: container.offset().top + container.height()
};
$(this.selector)
.unbind('dropstart drop dropend dragstart drag dragend')
.bind('dragstart', function(event) {
that.relocateTargets();
var proxy = $('<div class="dragproxy"></div>');
var list = proxy;
$(that.selectionModel.currentSelection).map(function(which, photo) {
var clone = $(photo).clone();
clone.data('clonedFrom', $(photo));
list.append(clone);
});
// Show counter for multiple dragged items
if(that.selectionModel.currentSelection.length > 1) {
proxy.append("<div class='dragcount'>"+that.selectionModel.currentSelection.length+"</div>")
}
$(document.body).append(proxy);
list.addClass('drag_image_opacity');
return proxy;
})
please help me, i'm newbie to jQuery
thanks,
sri...