TPAC added content shows default tab
authorBill Erickson <berick@esilibrary.com>
Tue, 15 May 2012 13:56:27 +0000 (09:56 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 25 May 2012 19:06:44 +0000 (15:06 -0400)
commit3d4cd71450ad45d1e47aa18aede02c4761307796
tree7346d9c97c2548e7fbc2b28c56fceee6d2edde27
parentabe0ce9424cb6595f11c5949883e2e39a6b795a0
TPAC added content shows default tab

Use the first available content as the default tab to show when the main
added content tab is expanded.

Note, if no content is known to exist until after JS has run, it's still
possible to expand the main tab and have no content selected by default.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/opac/parts/record/extras.tt2