Browse Source

Fixed bug incorrectly requesting url, and not type.

Signed-off-by: Eric Nakagawa <ericnakagawa@gmail.com>
Eric Nakagawa 11 years ago
parent
commit
c7fb6db6e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/js/validator/remote.js

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

@@ -27,7 +27,7 @@
                 return true;
             }
 
-            var name = $field.attr('data-bv-field'), data = options.data, url = options.url, type = options.url;
+            var name = $field.attr('data-bv-field'), data = options.data, url = options.url, type = options.type;
             if (type == null || type != "GET") type = "POST";
             if (data == null) {
                 data = {};