ソースを参照

#162: Update the changelog

nghuuphuoc 11 年 前
コミット
07cc2a1e7b

+ 4 - 0
CHANGELOG.md

@@ -7,6 +7,10 @@ __Improvements__:
 * [#131](https://github.com/nghuuphuoc/bootstrapvalidator/issues/131): Doesn't trigger validation on the first focus
 * [#145](https://github.com/nghuuphuoc/bootstrapvalidator/issues/145): The row state is now only marked as success if all fields on it are valid
 
+__Fixes__:
+
+* [#162](https://github.com/nghuuphuoc/bootstrapvalidator/pull/162): Fix errors in IE 8
+
 ## v0.4.0 (2014-04-03)
 
 __New features__:

+ 2 - 3
dist/js/bootstrapValidator.js

@@ -361,9 +361,8 @@
                                 || that.options.trigger
                                 || (('radio' == type || 'checkbox' == type || 'file' == type || 'SELECT' == fields[0].tagName) ? 'change' : that._changeEvent),
                             events    = $.map(trigger.split(' '), function(item) {
-	                            return item + '.live.bv';
-	                        }).join(' ');
-
+                                return item + '.live.bv';
+                            }).join(' ');
 
                         for (var i = 0; i < total; i++) {
                             ('enabled' == mode)

ファイルの差分が大きいため隠しています
+ 1 - 1
dist/js/bootstrapValidator.min.js


+ 3 - 3
src/js/bootstrapValidator.js

@@ -357,9 +357,9 @@
                             total     = fields.length,
                             updateAll = (total == 1) || ('radio' == type) || ('checkbox' == type),
                             trigger   = that.options.fields[field].trigger
-                                || that.options.trigger
-                                || (('radio' == type || 'checkbox' == type || 'file' == type || 'SELECT' == fields[0].tagName) ? 'change' : that._changeEvent),
-                            events    = trigger.split(' ').map(function(item) {
+                                        || that.options.trigger
+                                        || (('radio' == type || 'checkbox' == type || 'file' == type || 'SELECT' == fields[0].tagName) ? 'change' : that._changeEvent),
+                            events    = $.map(trigger.split(' '), function(item) {
                                 return item + '.live.bv';
                             }).join(' ');
 

+ 2 - 2
src/js/validator/stringCase.js

@@ -2,7 +2,7 @@
     $.fn.bootstrapValidator.validators.stringCase = {
         html5Attributes: {
             message: 'message',
-            case: 'case'
+            'case': 'case'
         },
 
         /**
@@ -21,7 +21,7 @@
                 return true;
             }
 
-            var stringCase = (options.case || 'lower').toLowerCase();
+            var stringCase = (options['case'] || 'lower').toLowerCase();
             switch (stringCase) {
                 case 'upper':
                     return value === value.toUpperCase();