mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX #4001 rndmerle: Added onblur validation to textarea.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@78568 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ac316f6c1d
commit
7712c5de49
@ -213,6 +213,17 @@ Behaviour.register({
|
||||
}
|
||||
}
|
||||
},
|
||||
'#$formID textarea' : {
|
||||
initialise: function() {
|
||||
if(!this.old_onblur) this.old_onblur = function() { return true; }
|
||||
if(!this.old_onfocus) this.old_onfocus = function() { return true; }
|
||||
},
|
||||
onblur : function() {
|
||||
if(this.old_onblur()) {
|
||||
return $('$formID').validate(this);
|
||||
}
|
||||
}
|
||||
},
|
||||
'#$formID select' : {
|
||||
initialise: function() {
|
||||
if(!this.old_onblur) this.old_onblur = function() { return true; }
|
||||
|
Loading…
Reference in New Issue
Block a user