mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Switch collapsible over from click to vclick.
This commit is contained in:
parent
b8c73e2599
commit
ca3026a341
1 changed files with 3 additions and 6 deletions
|
|
@ -133,18 +133,15 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
|
|||
}
|
||||
|
||||
collapsibleHeading
|
||||
.bind({
|
||||
"tap": function(){
|
||||
.bind("vclick", function(e){
|
||||
if( collapsibleHeading.is('.ui-collapsible-heading-collapsed') ){
|
||||
collapsibleContain.trigger('expand');
|
||||
}
|
||||
else {
|
||||
collapsibleContain.trigger('collapse');
|
||||
}
|
||||
return false;
|
||||
},
|
||||
"click": false
|
||||
});
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
});
|
||||
})( jQuery );
|
||||
Loading…
Reference in a new issue