editor: fixing, refactoring, improving styling in choice exercises
[fnpeditor.git] / src / editor / plugins / core / edumed / choice / choiceSingle.js
index 9346363..68ff576 100644 (file)
@@ -13,6 +13,7 @@ var $ = require('libs/jquery'),
 var choiceSingle = Object.create(choiceBase);
 _.extend(choiceSingle, {
     type: 'single',
+    name: gettext('Single Choice'),
     init: function() {
         this._comboName = _.uniqueId('edumed_exercise_hash_');
         choiceBase.init.call(this);
@@ -43,7 +44,7 @@ _.extend(choiceSingle, {
 });
 
 var RadioView = function(checked, name, onValueChange) {
-    this.dom = $('<input type="radio" style="float: left; margin-right: 40px;">')
+    this.dom = $('<input type="radio">')
             .attr('checked', checked)
             .attr('name', name);
     this.dom.on('change', function() {