Fix "checkWellKnownUrl" not being run
The check is run only if its last parameter is true; data() tries to convert the HTML attribute string to an actual JavaScript value, so "true" is returned as an actual boolean instead of an string; as a strict comparison against "true" was used the result was false and thus the checks were not run. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
c2a9899656
commit
79643ab4a2
|
@ -248,8 +248,8 @@ $(document).ready(function(){
|
||||||
// run setup checks then gather error messages
|
// run setup checks then gather error messages
|
||||||
$.when(
|
$.when(
|
||||||
OC.SetupChecks.checkWebDAV(),
|
OC.SetupChecks.checkWebDAV(),
|
||||||
OC.SetupChecks.checkWellKnownUrl('/.well-known/caldav/', oc_defaults.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === 'true'),
|
OC.SetupChecks.checkWellKnownUrl('/.well-known/caldav/', oc_defaults.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === true),
|
||||||
OC.SetupChecks.checkWellKnownUrl('/.well-known/carddav/', oc_defaults.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === 'true'),
|
OC.SetupChecks.checkWellKnownUrl('/.well-known/carddav/', oc_defaults.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === true),
|
||||||
OC.SetupChecks.checkSetup(),
|
OC.SetupChecks.checkSetup(),
|
||||||
OC.SetupChecks.checkGeneric(),
|
OC.SetupChecks.checkGeneric(),
|
||||||
OC.SetupChecks.checkDataProtected()
|
OC.SetupChecks.checkDataProtected()
|
||||||
|
|
Loading…
Reference in New Issue