mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Only load datetimepicker when neccesary
This commit is contained in:
parent
1515f45e31
commit
e030fda01a
|
|
@ -303,5 +303,20 @@ function bundle(cb)
|
|||
.pipe(dest('.release'))
|
||||
}
|
||||
|
||||
|
||||
export { build, js, vendor, viewjs, css, live, clean, resourceFileCopy, copyLocales, publish, release, bundle, makeLocales }
|
||||
export default publish;
|
||||
export
|
||||
{
|
||||
build,
|
||||
js,
|
||||
vendor,
|
||||
viewjs,
|
||||
css,
|
||||
live,
|
||||
clean,
|
||||
resourceFileCopy,
|
||||
copyLocales,
|
||||
publish,
|
||||
release,
|
||||
bundle,
|
||||
makeLocales
|
||||
}
|
||||
|
|
@ -3,8 +3,10 @@ import { LoadImagesLazy } from '../configs/lazy'
|
|||
|
||||
function userfieldsform(Grocy)
|
||||
{
|
||||
Grocy.Use("datetimepicker");
|
||||
|
||||
if (document.querySelector('.datetimepicker-input') !== null)
|
||||
{
|
||||
Grocy.Use("datetimepicker");
|
||||
}
|
||||
Grocy.Components.UserfieldsForm = {};
|
||||
|
||||
Grocy.Components.UserfieldsForm.Save = function(success, error)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user