mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 13:41:52 +02:00
Allow Selectize.js classes to be overriden.
This commit is contained in:
parent
63c833ce80
commit
16ef95ef13
@ -749,6 +749,11 @@ class e_form
|
||||
// Load selectize behavior.
|
||||
e107::js('core', 'selectize/js/selectize.init.js', 'jquery');
|
||||
|
||||
$options['selectize']['wrapperClass'] = 'selectize-control';
|
||||
$options['selectize']['inputClass'] = 'selectize-input';
|
||||
$options['selectize']['dropdownClass'] = 'selectize-dropdown';
|
||||
$options['selectize']['dropdownContentClass'] = 'selectize-dropdown-content';
|
||||
|
||||
$jsSettings = array(
|
||||
'id' => vartrue($options['id'], $this->name2id($name)),
|
||||
'options' => $options['selectize'],
|
||||
|
@ -98,6 +98,11 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
labelField: item.options.labelField ? item.options.labelField : 'label',
|
||||
searchField: item.options.searchField ? item.options.searchField : 'label',
|
||||
|
||||
wrapperClass: item.options.wrapperClass || 'selectize-control',
|
||||
inputClass: item.options.inputClass || 'selectize-input',
|
||||
dropdownClass: item.options.dropdownClass || 'selectize-dropdown',
|
||||
dropdownContentClass: item.options.dropdownContentClass || 'selectize-dropdown-content',
|
||||
|
||||
// Callbacks.
|
||||
load: function (query, callback) {
|
||||
var loadPath = item.options.loadPath ? item.options.loadPath : '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user