vendor/assets/javascripts/webshims/shims/combos/31.js in webshims-rails-1.15.6.4 vs vendor/assets/javascripts/webshims/shims/combos/31.js in webshims-rails-1.15.8
- old
+ new
@@ -1232,11 +1232,11 @@
}
});
})();
});
-;webshims.register('form-core', function($, webshims, window, document, undefined, options){
+webshims.register('form-core', function ($, webshims, window, document, undefined, options) {
"use strict";
webshims.capturingEventPrevented = function(e){
if(!e._isPolyfilled){
var isDefaultPrevented = e.isDefaultPrevented;
@@ -1371,10 +1371,12 @@
});
};
var transClass = ('transitionDelay' in document.documentElement.style) ? '' : ' no-transition';
var poCFG = webshims.cfg.wspopover;
+ var lReg = /</g;
+ var gReg = />/g;
addModule('form-validation', $.extend({d: ['form-message']}, formExtras));
addModule('form-validators', $.extend({}, formExtras));
@@ -1497,11 +1499,11 @@
$.fn.getErrorMessage = function(key){
var message = '';
var elem = this[0];
if(elem){
- message = webshims.getContentValidationMessage(elem, false, key) || $.prop(elem, 'customValidationMessage') || $.prop(elem, 'validationMessage');
+ message = webshims.getContentValidationMessage(elem, false, key) || $.prop(elem, 'customValidationMessage') || ($.prop(elem, 'validationMessage') || '').replace(lReg, '<').replace(gReg, '>');
}
return message;
};
$.event.special.valuevalidation = {
@@ -1545,10 +1547,10 @@
if(document.readyState == 'complete'){
webshims.isReady('WINDOWLOAD', true);
}
});
-;webshims.register('form-datalist', function($, webshims, window, document, undefined, options){
+webshims.register('form-datalist', function ($, webshims, window, document, undefined, options) {
"use strict";
var lazyLoad = function(name){
if(!name || typeof name != 'string'){
name = 'DOM';
}