浏览代码

#315: cvv validator doesn't work on IE 8

nghuuphuoc 11 年之前
父节点
当前提交
41258d58d8
共有 4 个文件被更改,包括 4 次插入3 次删除
  1. 1 0
      CHANGELOG.md
  2. 1 1
      dist/js/bootstrapValidator.js
  3. 1 1
      dist/js/bootstrapValidator.min.js
  4. 1 1
      src/js/validator/cvv.js

+ 1 - 0
CHANGELOG.md

@@ -22,6 +22,7 @@
 * [#312](https://github.com/nghuuphuoc/bootstrapvalidator/pull/312): Fix broacast typo in the [```uri``` validator](http://bootstrapvalidator.com/validators/uri/), thanks to [@mrpollo](https://github.com/mrpollo)
 * [#313](https://github.com/nghuuphuoc/bootstrapvalidator/issues/313): Fix the [```file``` validator](http://bootstrapvalidator.com/validators/file/) issue on IE 8
 * [#314](https://github.com/nghuuphuoc/bootstrapvalidator/issues/314): The [```creditCard``` validator](http://bootstrapvalidator.com/validators/creditCard/) doesn't work IE 8
+* [#315](https://github.com/nghuuphuoc/bootstrapvalidator/issues/315): The [```cvv``` validator](http://bootstrapvalidator.com/validators/cvv/) doesn't work IE 8
 * [#259](https://github.com/nghuuphuoc/bootstrapvalidator/issues/259): Typo "Support almost Bootstrap forms"
 * [#261](https://github.com/nghuuphuoc/bootstrapvalidator/pull/261): English fix to 'amazing contributors' section, thanks to [@lloydde](https://github.com/lloydde)
 * [#278](https://github.com/nghuuphuoc/bootstrapvalidator/pull/278): Update [```choice``` validator](http://bootstrapvalidator.com/validators/choice/) document, thanks to [@MrC0mm0n](https://github.com/MrC0mm0n)

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -1657,7 +1657,7 @@
             for (type in cards) {
                 for (i in cards[type]['prefix']) {
                     if (creditCard.substr(0, cards[type]['prefix'][i].length) == cards[type]['prefix'][i]   // Check the prefix
-                        && cards[type]['length'].indexOf(creditCard.length) != -1)                          // and length
+                        && $.inArray(creditCard.length, cards[type]['length']) != -1)                       // and length
                     {
                         creditCardType = type;
                         break;

文件差异内容过多而无法显示
+ 1 - 1
dist/js/bootstrapValidator.min.js


+ 1 - 1
src/js/validator/cvv.js

@@ -96,7 +96,7 @@
             for (type in cards) {
                 for (i in cards[type]['prefix']) {
                     if (creditCard.substr(0, cards[type]['prefix'][i].length) == cards[type]['prefix'][i]   // Check the prefix
-                        && cards[type]['length'].indexOf(creditCard.length) != -1)                          // and length
+                        && $.inArray(creditCard.length, cards[type]['length']) != -1)                       // and length
                     {
                         creditCardType = type;
                         break;