mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36: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'))
|
.pipe(dest('.release'))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default publish;
|
||||||
export { build, js, vendor, viewjs, css, live, clean, resourceFileCopy, copyLocales, publish, release, bundle, makeLocales }
|
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)
|
function userfieldsform(Grocy)
|
||||||
{
|
{
|
||||||
Grocy.Use("datetimepicker");
|
if (document.querySelector('.datetimepicker-input') !== null)
|
||||||
|
{
|
||||||
|
Grocy.Use("datetimepicker");
|
||||||
|
}
|
||||||
Grocy.Components.UserfieldsForm = {};
|
Grocy.Components.UserfieldsForm = {};
|
||||||
|
|
||||||
Grocy.Components.UserfieldsForm.Save = function(success, error)
|
Grocy.Components.UserfieldsForm.Save = function(success, error)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user