|
|
@@ -23,6 +23,7 @@
|
|
|
<<<<<<< HEAD
|
|
|
<<<<<<< HEAD
|
|
|
<<<<<<< HEAD
|
|
|
+<<<<<<< HEAD
|
|
|
* @version v0.5.3-dev, built on 2014-10-06 8:02:42 AM
|
|
|
=======
|
|
|
* @version v0.5.2-dev, built on 2014-09-18 9:55:01 PM
|
|
|
@@ -87,6 +88,9 @@
|
|
|
=======
|
|
|
* @version v0.5.2-dev, built on 2014-09-18 10:04:11 PM
|
|
|
>>>>>>> Refactor color validators to one single entity
|
|
|
+=======
|
|
|
+ * @version v0.5.2-dev, built on 2014-09-18 10:04:23 PM
|
|
|
+>>>>>>> Add dist files for Readd hexColor validator
|
|
|
* @author https://twitter.com/nghuuphuoc
|
|
|
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
|
|
|
* @license MIT
|
|
|
@@ -3301,6 +3305,30 @@ if (typeof jQuery === 'undefined') {
|
|
|
};
|
|
|
}(window.jQuery));
|
|
|
;(function($) {
|
|
|
+ $.fn.bootstrapValidator.i18n.hexColor = $.extend($.fn.bootstrapValidator.i18n.hexColor || {}, {
|
|
|
+ 'default': 'Please enter a valid hex color'
|
|
|
+ });
|
|
|
+
|
|
|
+ $.fn.bootstrapValidator.validators.hexColor = {
|
|
|
+ enableByHtml5: function($field) {
|
|
|
+ return ('color' === $field.attr('type'));
|
|
|
+ },
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Return true if the input value is a valid hex color
|
|
|
+ *
|
|
|
+ * @param {BootstrapValidator} validator The validator plugin instance
|
|
|
+ * @param {jQuery} $field Field element
|
|
|
+ * @param {Object} options Can consist of the following keys:
|
|
|
+ * - message: The invalid message
|
|
|
+ * @returns {Boolean}
|
|
|
+ */
|
|
|
+ validate: function(validator, $field, options) {
|
|
|
+ return $.fn.bootstrapValidator.validators.color._hexColor(validator, $field, options);
|
|
|
+ }
|
|
|
+ };
|
|
|
+}(window.jQuery));
|
|
|
+;(function($) {
|
|
|
$.fn.bootstrapValidator.i18n.iban = $.extend($.fn.bootstrapValidator.i18n.iban || {}, {
|
|
|
'default': 'Please enter a valid IBAN number',
|
|
|
countryNotSupported: 'The country code %s is not supported',
|