mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 21:21:54 +02:00
Closes #4952 - Update selectize.js to v0.15.2
This commit is contained in:
parent
21de308f83
commit
e6dc147074
@ -856,7 +856,8 @@ class e_form
|
||||
if(!empty($options['selectize']))
|
||||
{
|
||||
e107::js('core', 'selectize/js/selectize.min.js', 'jquery');
|
||||
e107::css('core', 'selectize/css/selectize.css', 'jquery');
|
||||
$css = !empty($this->_bootstrap) ? 'selectize/css/selectize.bootstrap'.$this->_bootstrap.'.css' : 'selectize/css/selectize.css';
|
||||
e107::css('core', $css, 'jquery');
|
||||
|
||||
// Load selectize behavior.
|
||||
e107::js('core', 'selectize/js/selectize.init.js', 'jquery');
|
||||
@ -2031,6 +2032,7 @@ class e_form
|
||||
}
|
||||
}
|
||||
|
||||
// defaults.
|
||||
$parms = array(
|
||||
'selectize' => array(
|
||||
'loadPath' => e_HTTP.'user.php',
|
||||
@ -2041,6 +2043,19 @@ class e_form
|
||||
)
|
||||
);
|
||||
|
||||
if(!empty($options['loadPath']))
|
||||
{
|
||||
$parms['selectize']['loadPath'] = $options['loadPath'];
|
||||
unset($options['loadPath']);
|
||||
}
|
||||
|
||||
if(!empty($options['plugins'])) // eg. array('remove_button')
|
||||
{
|
||||
$parms['selectize']['plugins'] = $options['plugins']; // 'plugins' => array('remove_button')
|
||||
unset($options['plugins']);
|
||||
}
|
||||
|
||||
|
||||
if(!empty($options['limit']))
|
||||
{
|
||||
$parms['selectize']['maxItems'] = (int) $options['limit'];
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
20
e107_web/js/selectize/css/selectize.bootstrap4.css
Normal file
20
e107_web/js/selectize/css/selectize.bootstrap4.css
Normal file
File diff suppressed because one or more lines are too long
20
e107_web/js/selectize/css/selectize.bootstrap5.css
Normal file
20
e107_web/js/selectize/css/selectize.bootstrap5.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
35
e107_web/js/selectize/js/selectize.min.js
vendored
35
e107_web/js/selectize/js/selectize.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user