Arthur Bogaart pushed to branch master at cms-community / hippo-cms
Commits: 724ba63b by Arthur Bogaart at 2017-09-14T13:02:53+02:00 CMS-10846 Prevent javascript wicket.ajax error on hidden minutes field - - - - - 1 changed file: - api/src/main/java/org/hippoecm/frontend/plugins/yui/datetime/YuiGMTDateField.java Changes: ===================================== api/src/main/java/org/hippoecm/frontend/plugins/yui/datetime/YuiGMTDateField.java ===================================== --- a/api/src/main/java/org/hippoecm/frontend/plugins/yui/datetime/YuiGMTDateField.java +++ b/api/src/main/java/org/hippoecm/frontend/plugins/yui/datetime/YuiGMTDateField.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 Hippo B.V. (http://www.onehippo.com) + * Copyright 2016-2017 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,10 +30,12 @@ public class YuiGMTDateField extends YuiDateTimeField { // hiding the "hours" component hides the entire "hours" wicket:enclosure get(HOURS).setVisibilityAllowed(false); + // hide the minutes field to prevent wicket.ajax javascript errors + get(MINUTES).setVisibilityAllowed(false); } @Override protected TimeZone getClientTimeZone() { return TimeZone.getTimeZone("GMT"); } -} \ No newline at end of file +} View it on GitLab: https://code.onehippo.org/cms-community/hippo-cms/commit/724ba63b00b8f3e34d30f6736ab469d8f6b02895 --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-cms/commit/724ba63b00b8f3e34d30f6736ab469d8f6b02895 You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn