From 54b8482223288a4d5df41267f3c9235bab06c15e Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 24 Mar 2017 17:12:23 +0100 Subject: add minionlivesmatter --- .../bootstrap-material-design/js/collapseInline.js | 113 +++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 minionlivesmatter/templates/assets/bootstrap-material-design/js/collapseInline.js (limited to 'minionlivesmatter/templates/assets/bootstrap-material-design/js/collapseInline.js') diff --git a/minionlivesmatter/templates/assets/bootstrap-material-design/js/collapseInline.js b/minionlivesmatter/templates/assets/bootstrap-material-design/js/collapseInline.js new file mode 100644 index 0000000..10d813f --- /dev/null +++ b/minionlivesmatter/templates/assets/bootstrap-material-design/js/collapseInline.js @@ -0,0 +1,113 @@ +import Base from './base' +import Util from './util' + +const CollapseInline = (($) => { + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + const NAME = 'collapseInline' + const DATA_KEY = `bmd.${NAME}` + const JQUERY_NAME = `bmd${NAME.charAt(0).toUpperCase() + NAME.slice(1)}` + const JQUERY_NO_CONFLICT = $.fn[JQUERY_NAME] + + const Selector = { + ANY_INPUT: 'input, select, textarea' + } + + const ClassName = { + IN: 'in', + COLLAPSE: 'collapse', + COLLAPSING: 'collapsing', + COLLAPSED: 'collapsed', + WIDTH: 'width' + } + const Default = {} + + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + class CollapseInline extends Base { + + // $element is expected to be the trigger + // i.e.