mirror of
https://github.com/humhub/humhub.git
synced 2025-04-21 23:52:04 +02:00
Add beforeInitCallback humhub.ui.picker
(#7437)
* Add beforeInitCallback `humhub.ui.picker` * Add beforeInitCallback humhub.ui.picker
This commit is contained in:
parent
e5bb6a246a
commit
c904807b0a
@ -15,6 +15,7 @@ HumHub Changelog
|
||||
- Fix #7419: Reset modal window after close
|
||||
- Fix #7428: Fix picker autofocus
|
||||
- Enh #7424: New event on get registration groups
|
||||
- Enh #7437: Add beforeInitCallback `humhub.ui.picker`
|
||||
|
||||
1.17.0 (January 13, 2025)
|
||||
-------------------------
|
||||
|
@ -22,6 +22,11 @@ humhub.module('ui.picker', function (module, require, $) {
|
||||
this.options.dataAdapter = $.fn.select2.amd.require('select2/data/extended-ajax');
|
||||
}
|
||||
}
|
||||
|
||||
if (this.options.beforeInitCallback && typeof window[this.options.beforeInitCallback] === 'function') {
|
||||
this.options = window[this.options.beforeInitCallback].call(null, this.options);
|
||||
}
|
||||
|
||||
_initSelect2(this.$, this.options);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user