vendor/assets/javascripts/webshims/shims/form-combat.js in webshims-rails-1.12.5 vs vendor/assets/javascripts/webshims/shims/form-combat.js in webshims-rails-1.12.7

- old
+ new

@@ -22,11 +22,11 @@ _create: function(elem, shadow, shadowFocus, widgetData){ if(('container' in widgetData) && $.isFunction(widgetData.opened)){ var onValidate = function(e){ if (!webshims.wsPopover.isInElement([elem, shadow, shadowFocus, $(widgetData.container)], e.target)) { - $(elem).trigger('refreshvalidityui'); + $(elem).trigger('updatevalidation.webshims'); } }; $(shadow).on('wsallowinstantvalidation', function(e, data){ $(document).off('focusin', onValidate); @@ -49,11 +49,11 @@ shadowFocus: '$button', _create: function(elem, shadow, shadowFocus, widgetData){ if(('$menu' in widgetData)){ var onValidate = function(e){ if (!webshims.wsPopover.isInElement([elem, shadow, shadowFocus, $(widgetData.$menu)], e.target)) { - $(elem).trigger('refreshvalidityui'); + $(elem).trigger('updatevalidation.webshims'); } }; $(shadow).on('wsallowinstantvalidation', function(e, data){ $(document).off('focusin', onValidate); @@ -83,10 +83,10 @@ }, _create: function(elem, shadow, shadowFocus, widgetData){ if(('listbox' in widgetData)){ var onValidate = function(e){ if (!webshims.wsPopover.isInElement([elem, shadow, shadowFocus, $(widgetData.listbox).parent()], e.target)) { - $(elem).trigger('refreshvalidityui'); + $(elem).trigger('updatevalidation.webshims'); } }; $(shadow).on('wsallowinstantvalidation', function(e, data){ if(data.type == 'focusout' && data.target != elem && widgetData.isOpen){