mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge branch '5.3'
This commit is contained in:
commit
d71c482685
@ -12,7 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
$.extend($.validator.methods, {
|
$.extend($.validator.methods, {
|
||||||
date: function(value, element) {
|
date: function(value, element) {
|
||||||
return this.optional(element) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);
|
return this.optional(element) || /^[\d]{1,4}\-[0-1][0-9]\-[0-3][0-9]?$/.test(value);
|
||||||
},
|
},
|
||||||
number: function(value, element) {
|
number: function(value, element) {
|
||||||
return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);
|
return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*! jQuery Validation Plugin - v1.13.1 - 10/14/2014
|
/*! jQuery Validation Plugin - v1.13.1 - 10/14/2014
|
||||||
* http://jqueryvalidation.org/
|
* http://jqueryvalidation.org/
|
||||||
* Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */
|
* Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */
|
||||||
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(a)}})});
|
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^[\d]{1,4}\-[0-1][0-9]\-[0-3][0-9]?$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(a)}})});
|
@ -12,7 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
$.extend($.validator.methods, {
|
$.extend($.validator.methods, {
|
||||||
date: function(value, element) {
|
date: function(value, element) {
|
||||||
return this.optional(element) || /^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(value);
|
return this.optional(element) || /^[\d]{1,4}\-[0-1][0-9]\-[0-3][0-9]?$/.test(value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*! jQuery Validation Plugin - v1.13.1 - 10/14/2014
|
/*! jQuery Validation Plugin - v1.13.1 - 10/14/2014
|
||||||
* http://jqueryvalidation.org/
|
* http://jqueryvalidation.org/
|
||||||
* Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */
|
* Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */
|
||||||
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(a)}})});
|
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^[\d]{1,4}\-[0-1][0-9]\-[0-3][0-9]?$/.test(a)}})});
|
@ -506,8 +506,8 @@ class EmailRecipient extends DataObject
|
|||||||
$templatePath = substr($absoluteFilename, strlen($prefixToStrip) + 1);
|
$templatePath = substr($absoluteFilename, strlen($prefixToStrip) + 1);
|
||||||
|
|
||||||
// Optionally remove "templates/" prefixes
|
// Optionally remove "templates/" prefixes
|
||||||
if (substr($templatePath, 0, 10)) {
|
if (preg_match('/(?<=templates\/).*$/', $templatePath, $matches)) {
|
||||||
$templatePath = substr($templatePath, 10);
|
$templatePath = $matches[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
$templates[$templatePath] = $template['filename'];
|
$templates[$templatePath] = $template['filename'];
|
||||||
|
Loading…
Reference in New Issue
Block a user