mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-19 05:52:21 +00:00
12 lines
405 B
JavaScript
12 lines
405 B
JavaScript
|
/** global: django */
|
||
|
|
||
|
window.onload = function() {
|
||
|
if (typeof(django) !== 'undefined' && typeof(django.jQuery) !== 'undefined') {
|
||
|
(function($) {
|
||
|
// add colopicker to inlines added dynamically
|
||
|
$(document).on('formset:added', function onFormsetAdded(event, row) {
|
||
|
jscolor.installByClassName('jscolor');
|
||
|
});
|
||
|
}(django.jQuery));
|
||
|
}
|
||
|
};
|