app/assets/javascripts/cytoplasm/cytoRadio.js.erb in cytoplasm-0.1.3 vs app/assets/javascripts/cytoplasm/cytoRadio.js.erb in cytoplasm-0.1.4
- old
+ new
@@ -92,9 +92,13 @@
})).trigger('change');
settings.widget.buttonList.buttons.elements.bind({
mousedown:function(e){
e.preventDefault();
if ($(this).hasClass('active')) return false;
+ $(this).addClass('active');
+ },
+ mouseup:function(e){
+ e.preventDefault();
methods.value.apply($this,[$(this).data('cytoradio-value')]);
settings.widget.inputList.inputs.elements.trigger('change');
},
click:function(e){e.preventDefault();}
});
\ No newline at end of file