增加了修改密码的页面和js

This commit is contained in:
sxw
2015-08-04 14:55:38 +08:00
parent 2454db54b0
commit 3ccb7740f2
5 changed files with 158 additions and 9 deletions

View File

@@ -0,0 +1,34 @@
/**
* confirm validator
*/
(function(root, factory) {
"use strict";
// AMD module is defined
if (typeof define === "function" && define.amd) {
define("validator/confirm", ["jquery", "base"], factory);
} else {
// planted over the root!
factory(root.jQuery, root.FormValidation);
}
}(this, function ($, FormValidation) {
FormValidation.I18n = $.extend(true, FormValidation.I18n || {}, {
'en_US': {
confirm: {
'default': 'Please input the same value'
}
}
});
FormValidation.Validator.confirm = {
validate: function(validator, $field, options) {
if (options.firstPassword.val() == options.secondPassword.val() ||options.secondPassword.val()== '')
return true;
return false;
}
};
}));