aboutsummaryrefslogtreecommitdiffstats
path: root/template-common/lib/ui/ui.accordion.js
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-09-25 15:10:39 +0000
committerpatdenice <patdenice@piwigo.org>2008-09-25 15:10:39 +0000
commitfd0b26af453fedf4528eaf4114914a6e5b7bc685 (patch)
treedf6baa48ee5512e6b96f7a4f1184db8ab91e131e /template-common/lib/ui/ui.accordion.js
parenta3dc10babc0609f2a097bca76da1de8b2d92ace6 (diff)
- Add all jQuery UI files (for future use) in stable version (1.5.2).
- Use jQuery cluetip plugin for new plugins page. - Remove old CSS tooltip rules. git-svn-id: http://piwigo.org/svn/trunk@2587 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template-common/lib/ui/ui.accordion.js')
-rw-r--r--template-common/lib/ui/ui.accordion.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/template-common/lib/ui/ui.accordion.js b/template-common/lib/ui/ui.accordion.js
index 4df9edea9..2cf014b8e 100644
--- a/template-common/lib/ui/ui.accordion.js
+++ b/template-common/lib/ui/ui.accordion.js
@@ -111,7 +111,7 @@ function completed(cancel) {
overflow: ""
});
}
- instance.trigger('change', null, options.data);
+ $(this).triggerHandler("accordionchange", [$.event.fix({type: 'accordionchange', target: instance.element[0]}), options.data], options.change);
}
function toggle(toShow, toHide, data, clickedActive, down) {
@@ -201,11 +201,12 @@ function clickHandler(event) {
// find elements to show and hide
var toShow = clicked.next(),
toHide = options.active.next(),
+ //data = [clicked, options.active, toShow, toHide],
data = {
options: options,
- newHeader: clickedActive && !options.alwaysOpen ? $([]) : clicked,
+ newHeader: clicked,
oldHeader: options.active,
- newContent: clickedActive && !options.alwaysOpen ? $([]) : toShow,
+ newContent: toShow,
oldContent: toHide
},
down = options.headers.index( options.active[0] ) > options.headers.index( clicked[0] );
@@ -217,7 +218,7 @@ function clickHandler(event) {
};
function findActive(headers, selector) {
- return selector
+ return selector != undefined
? typeof selector == "number"
? headers.filter(":eq(" + selector + ")")
: headers.not(headers.not(selector))