mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Defined jsValidation() and validate() so that inherited validation from DateField doesn't break PopupDateTimeField - this still needs fixing, and PopupDateTimeField shouldn't inherit from CalendarDateField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70609 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6eec6006a5
commit
c6275611ee
@ -6,6 +6,21 @@
|
||||
*/
|
||||
class PopupDateTimeField extends CalendarDateField {
|
||||
|
||||
/**
|
||||
* @todo js validation needs to be implemented.
|
||||
* @see sapphire/forms/DateField#jsValidation()
|
||||
*/
|
||||
function jsValidation() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo php validation needs to be implemented.
|
||||
* @see sapphire/forms/DateField#validate($validator)
|
||||
*/
|
||||
function validate() {
|
||||
return true;
|
||||
}
|
||||
|
||||
function Field() {
|
||||
|
||||
Requirements::css( SAPPHIRE_DIR . '/css/PopupDateTimeField.css' );
|
||||
|
Loading…
x
Reference in New Issue
Block a user