app/assets/javascripts/semantic-ui/modules/behavior/form.js in semantic-ui-rails-0.14.0 vs app/assets/javascripts/semantic-ui/modules/behavior/form.js in semantic-ui-rails-0.16.1
- old
+ new
@@ -105,16 +105,14 @@
$submit
.on('click' + eventNamespace, module.submit)
;
$field
.each(function() {
- var
+ var
type = $(this).prop('type'),
inputEvent = module.get.changeEvent(type)
;
- if(settings.inline == true) {
- }
$(this)
.on(inputEvent + eventNamespace, module.event.field.change)
;
})
;
@@ -199,10 +197,10 @@
},
get: {
changeEvent: function(type) {
- if(type == 'checkbox' || type == 'radio') {
+ if(type == 'checkbox' || type == 'radio' || type == 'hidden') {
return 'change';
}
else {
return (document.createElement('input').oninput !== undefined)
? 'input'