Hello Everybody!

Does somebody know how deactivate the click event on a dragable item while
dragging.
I tried to unbind the click event on start, and bind it again on stop. but
the initial click (=toggle) is still fired.

Thx everybody! i hope i made my problem clear ;/

chris

var $sortable = $(".containerCenterPDF .contentList").sortable({
>         placeholder: 'dragHighlight',
>         items:'.toogleBox',
>         start: function(e) {
>             //console.log('start')
>             $('.toogleBox h2 a', this).unbind("click");
>         },
>         stop: function(e) {
>             //console.log('stop')
>             $('.toogleBox h2 a').click(function(){
>                 $(this).trigger('toggleBox');
>             });
>         })


    $('.toogleBox h2 a').bind('toggleBox',function(){
>         $(this).parent().parent().toggleClass('toogleBoxOpen');
>         return false;
>     }).click(function(){
>         console.log('normal')
>         $(this).trigger('toggleBox');
>     });
>

Reply via email to