app/assets/javascripts/cytoplasm/cytoRadio.js.erb in cytoplasm-0.0.7 vs app/assets/javascripts/cytoplasm/cytoRadio.js.erb in cytoplasm-0.0.9

- old
+ new

@@ -88,10 +88,10 @@ // Bindings settings.widget.inputList.inputs.elements.change($.debounce(100,true,function(e){ methods.value.apply(settings.widget.inputList.inputs.elements,[settings.widget.inputList.inputs.elements.filter(':checked').val()]) settings.events.change.apply(settings.widget.inputList.inputs.elements,[settings,e]); })).trigger('change'); - settings.widget.buttonList.buttons.elements.click(function(e){ + settings.widget.buttonList.buttons.elements.mousedown(function(e){ e.preventDefault(); if ($(this).hasClass('active')) return false; methods.value.apply($this,[$(this).data('cytoradio-value')]); settings.widget.inputList.inputs.elements.trigger('change'); }); \ No newline at end of file