Changeset 2587 for trunk/template-common/lib/ui/ui.accordion.js
- Timestamp:
- Sep 25, 2008, 5:10:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/template-common/lib/ui/ui.accordion.js
r2489 r2587 112 112 }); 113 113 } 114 instance.trigger('change', null, options.data);114 $(this).triggerHandler("accordionchange", [$.event.fix({type: 'accordionchange', target: instance.element[0]}), options.data], options.change); 115 115 } 116 116 … … 202 202 var toShow = clicked.next(), 203 203 toHide = options.active.next(), 204 //data = [clicked, options.active, toShow, toHide], 204 205 data = { 205 206 options: options, 206 newHeader: clicked Active && !options.alwaysOpen ? $([]) : clicked,207 newHeader: clicked, 207 208 oldHeader: options.active, 208 newContent: clickedActive && !options.alwaysOpen ? $([]) :toShow,209 newContent: toShow, 209 210 oldContent: toHide 210 211 }, … … 218 219 219 220 function findActive(headers, selector) { 220 return selector 221 return selector != undefined 221 222 ? typeof selector == "number" 222 223 ? headers.filter(":eq(" + selector + ")")
Note: See TracChangeset
for help on using the changeset viewer.