|
|
@@ -3,7 +3,7 @@
|
|
|
*
|
|
|
* A jQuery plugin to validate form fields. Use with Bootstrap 3
|
|
|
*
|
|
|
- * @version v0.3.2
|
|
|
+ * @version v0.3.3-dev
|
|
|
* @author https://twitter.com/nghuuphuoc
|
|
|
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
|
|
|
* @license MIT
|
|
|
@@ -184,7 +184,7 @@
|
|
|
// Whenever the user change the field value, mark it as not validated yet
|
|
|
var that = this,
|
|
|
type = fields.attr('type'),
|
|
|
- event = ('radio' == type || 'checkbox' == type || 'SELECT' == fields[0].tagName) ? 'change' : 'keyup';
|
|
|
+ event = ('radio' == type || 'checkbox' == type || 'file' == type || 'SELECT' == fields[0].tagName) ? 'change' : 'keyup';
|
|
|
fields.on(event + '.bootstrapValidator', function() {
|
|
|
that.updateStatus($field, that.STATUS_NOT_VALIDATED, null);
|
|
|
});
|
|
|
@@ -229,7 +229,7 @@
|
|
|
var fields = that.getFieldElements(f);
|
|
|
if (fields) {
|
|
|
var type = fields.attr('type'),
|
|
|
- event = ('radio' == type || 'checkbox' == type || 'SELECT' == fields[0].tagName) ? 'change' : 'keyup';
|
|
|
+ event = ('radio' == type || 'checkbox' == type || 'file' == type || 'SELECT' == fields[0].tagName) ? 'change' : 'keyup';
|
|
|
|
|
|
fields.on(event + '.bootstrapValidator', function() {
|
|
|
that.validateField(f);
|