src/main/resources/static/crlcu-multiselect/js/multiselect.js
/** Multiselect object constructor
         *
         *  @class Multiselect
         *  @constructor
        **/
Multiselect object constructor
@class Multiselect
@constructor
Multiselect object constructor @class Multiselect @constructor
function Multiselect( $select, settings ) {
            var id = $select.prop('id');
            this.$left = $select;
            this.$right = $( settings.right ).length ? $( settings.right ) : $('#' + id + '_to');
            this.actions = {
                $leftAll:       $( settings.leftAll ).length ? $( settings.leftAll ) : $('#' + id + '_leftAll'),
                $rightAll:      $( settings.rightAll ).length ? $( settings.rightAll ) : $('#' + id + '_rightAll'),
                $rightAllOpt:	$( settings.rightAllOpt ).lenght ? $( settings.rightAllOpt ) : $('#' + id + '_rightAllOpt'),
                $leftAllOpt:	$( settings.leftAllOpt ).lenght ? $( settings.leftAllOpt ) : $('#' + id + '_leftAllOpt'),
                $leftSelected:  $( settings.leftSelected ).length ? $( settings.leftSelected ) : $('#' + id + '_leftSelected'),
                $rightSelected: $( settings.rightSelected ).length ? $( settings.rightSelected ) : $('#' + id + '_rightSelected'),
                $undo:          $( settings.undo ).length ? $( settings.undo ) : $('#' + id + '_undo'),
                $redo:          $( settings.redo ).length ? $( settings.redo ) : $('#' + id + '_redo'),
                $moveUp:        $( settings.moveUp ).length ? $( settings.moveUp ) : $('#' + id + '_move_up'),
                $moveDown:      $( settings.moveDown ).length ? $( settings.moveDown ) : $('#' + id + '_move_down')
            };
            delete settings.leftAll;
            delete settings.leftAllOpt;
            delete settings.leftSelected;
            delete settings.right;
            delete settings.rightAll;
            delete settings.rightAllOpt;
            delete settings.rightSelected;
            delete settings.undo;
            delete settings.redo;
            delete settings.moveUp;
            delete settings.moveDown;
            this.options = {
                keepRenderingSort:  settings.keepRenderingSort,
                submitAllLeft:      settings.submitAllLeft !== undefined ? settings.submitAllLeft : true,
                submitAllRight:     settings.submitAllRight !== undefined ? settings.submitAllRight : true,
                search:             settings.search,
                ignoreDisabled:     settings.ignoreDisabled !== undefined ? settings.ignoreDisabled : false
            };
            delete settings.keepRenderingSort, settings.submitAllLeft, settings.submitAllRight, settings.search, settings.ignoreDisabled;
            this.callbacks = settings;
            this.init();
        }
function Multiselect ( $select , settings ) { var id = $select . prop ( 'id' ) ; this . $left = $select ; this . $right = $ ( settings . right ) . length ? $ ( settings . right ) : $ ( '#' + id + '_to' ) ; this . actions = { $leftAll : $ ( settings . leftAll ) . length ? $ ( settings . leftAll ) : $ ( '#' + id + '_leftAll' ) , $rightAll : $ ( settings . rightAll ) . length ? $ ( settings . rightAll ) : $ ( '#' + id + '_rightAll' ) , $rightAllOpt : $ ( settings . rightAllOpt ) . lenght ? $ ( settings . rightAllOpt ) : $ ( '#' + id + '_rightAllOpt' ) , $leftAllOpt : $ ( settings . leftAllOpt ) . lenght ? $ ( settings . leftAllOpt ) : $ ( '#' + id + '_leftAllOpt' ) , $leftSelected : $ ( settings . leftSelected ) . length ? $ ( settings . leftSelected ) : $ ( '#' + id + '_leftSelected' ) , $rightSelected : $ ( settings . rightSelected ) . length ? $ ( settings . rightSelected ) : $ ( '#' + id + '_rightSelected' ) , $undo : $ ( settings . undo ) . length ? $ ( settings . undo ) : $ ( '#' + id + '_undo' ) , $redo : $ ( settings . redo ) . length ? $ ( settings . redo ) : $ ( '#' + id + '_redo' ) , $moveUp : $ ( settings . moveUp ) . length ? $ ( settings . moveUp ) : $ ( '#' + id + '_move_up' ) , $moveDown : $ ( settings . moveDown ) . length ? $ ( settings . moveDown ) : $ ( '#' + id + '_move_down' ) } ; delete settings . leftAll ; delete settings . leftAllOpt ; delete settings . leftSelected ; delete settings . right ; delete settings . rightAll ; delete settings . rightAllOpt ; delete settings . rightSelected ; delete settings . undo ; delete settings . redo ; delete settings . moveUp ; delete settings . moveDown ; this . options = { keepRenderingSort : settings . keepRenderingSort , submitAllLeft : settings . submitAllLeft !== undefined ? settings . submitAllLeft : true , submitAllRight : settings . submitAllRight !== undefined ? settings . submitAllRight : true , search : settings . search , ignoreDisabled : settings . ignoreDisabled !== undefined ? settings . ignoreDisabled : false } ; delete settings . keepRenderingSort , settings . submitAllLeft , settings . submitAllRight , settings . search , settings . ignoreDisabled ; this . callbacks = settings ; this . init ( ) ; }
Multiselect object constructor
  @class Multiselect
  @constructor
Multiselect object constructor @class Multiselect @constructor