Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit db32cc1

Browse files
committed
Make class to show/hide UI elements configurable.
Closes #3537.
1 parent a2a6722 commit db32cc1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/jquery.fileupload-ui.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
// as the user clicks on the start buttons. To enable automatic
5555
// uploads, set the following option to true:
5656
autoUpload: false,
57+
// The class to show/hide UI elements:
58+
showElementClass: 'in',
5759
// The ID of the upload template:
5860
uploadTemplateId: 'template-upload',
5961
// The ID of the download template:
@@ -614,9 +616,9 @@
614616
};
615617
node
616618
.bind($.support.transition.end, transitionEndHandler)
617-
.toggleClass('in');
619+
.toggleClass(this.options.showElementClass);
618620
} else {
619-
node.toggleClass('in');
621+
node.toggleClass(this.options.showElementClass);
620622
dfd.resolveWith(node);
621623
}
622624
return dfd;

0 commit comments

Comments
 (0)