Opencast plugin for ILIAS LMS. The plugin shows a Opencast series as an ILIAS object. This version of the ILIAS plugin for Opencast is operated and developed collaboratively by a community. The University of Bern acts as coordinative maintainer.
GNU General Public License v3.0
13
stars
14
forks
source link
[Release 8] Update title with uploaded file name #308
FileInputMutationObserver js class is introduced to add an observer to the file input container.
By registering the observer on drop and click event (in capturing mode) on the file input div container, we can recognize when the dz-namespan is appended to the container which contains the filename.
FileInputMutationObserver is capable of invoking external callback from outside, that means the function you need to perform can be written in the withAdditionalOnLoadCode, by passing an array of arbitrary callables to the init method.
The validation message (when required inputs are empty) is also updated and uses custom string, accessible in langs with id of msg_empty_required_field
This PR fixes #171,
Description
please refer to https://github.com/opencast-ilias/OpenCast/issues/171#issuecomment-1611475381
How it works
FileInputMutationObserver
js class is introduced to add an observer to the file input container.drop
andclick
event (in capturing mode) on the file input div container, we can recognize when thedz-name
span
is appended to the container which contains the filename.FileInputMutationObserver
is capable of invoking external callback from outside, that means the function you need to perform can be written in thewithAdditionalOnLoadCode
, by passing an array of arbitrary callables to the init method.msg_empty_required_field