javascript - Modify Twitter Bootstrap collapse plugin to keep accordions open -


i'm trying modify bootstrap collapse plugin allow me specify whether clicking accordion (to open) should automatically close other items in accordion (so more 1 item in accordion can open @ time)

i want create new data attribute on accordion, data-collapse-type="auto|manual"

the bootstrap jquery plugins bit advanced skill level. relevant part of need mess seems on line 52, actives.collapse('hide'). don't want happen if 'data-collapse-type="manual"' set (omitting attribute or setting auto should keep default behavior).

i've created jsfiddle i've been experiementing.

can me on right track this?

i have forked , updated fiddle.

just go .show function, have written comments.

http://jsfiddle.net/2rnpz/


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -