File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1155
1155
tgt = isFunction ( tgt ) ? tgt . call ( this , el ) : this . $el . find ( tgt ) ;
1156
1156
if ( tgt . length ) {
1157
1157
if ( tgt . is ( INPUT_SELECTOR ) ) {
1158
+ $el = tgt
1158
1159
el = tgt . get ( 0 ) ;
1159
1160
} else if ( tgt . hasClass ( CLS_MSG_BOX ) ) {
1160
1161
$msgbox = tgt ;
1173
1174
1174
1175
// Create new message box
1175
1176
if ( ! msgOpt . hide && ! $msgbox . length ) {
1176
- $el = this . $el . find ( tgt || el ) ;
1177
-
1178
1177
$msgbox = $ ( '<' + msgOpt . wrapper + '>' ) . attr ( {
1179
1178
'class' : CLS_MSG_BOX + ( msgOpt . cls ? ' ' + msgOpt . cls : '' ) ,
1180
1179
'style' : msgOpt . style || undefined ,
1229
1228
}
1230
1229
1231
1230
msgOpt = me . _getMsgOpt ( msgOpt , field ) ;
1232
- el = $ ( el ) . get ( 0 ) ;
1231
+ el = ( el . name && _checkable ( el ) ? me . $el . find ( 'input[name="' + el . name + '"]' ) : $ ( el ) ) . get ( 0 ) ;
1233
1232
1234
1233
// ok or tip
1235
1234
if ( ! msgOpt . msg && msgOpt . type !== 'error' ) {
You can’t perform that action at this time.
0 commit comments