Problem with droppable and FF
Hello, I am creating a droppable component and has a very rare problem with FF i don't know why doesn't append the clone of the component to the droppable widget, and just dissapear the widget. here it's the code, of the draggable function and the droppable function
Draggable:
- function makeDrag(elmnt){
- $(elmnt).draggable({
- helper:'clone',
- cancel: null,
- scroll: true,
- scrollSensitivity: 100
- });
- }
Droppable:
- function actvDrop(widget){
- $(function() {
- $("#"+widget.getAttribute('id')).droppable({
- drop: function(event,ui){
- if ($(ui.draggable).attr('new') == 'true')
- {
- clone = $(ui.draggable).clone();
- $(clone).mouseover(function(event){
- showprp(this);
- });
- $(clone).attr('new', 'false');
- var clnumb = parseInt($(clone).attr('clone'));
- var newIndex = (clnumb+1);
- $(ui.draggable).attr('clone', newIndex);
- $(clone).attr('id', ((newIndex)+$(clone).attr('id').substring(1)));
- $(clone).css({position:'absolute', top:event.pageY, left:event.pageX});
- $(this).append(clone);
- makeDrag(clone);
- }else{
- $(ui.draggable).css({position:'absolute', top:event.pageY, left:event.pageX});
- $(this).append(ui.draggable);
- }
-
- }
- });
- });
- }
Sincerly i need your help i don't know what do now