fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prevent empty span in a new node
[fnpeditor.git]
/
src
/
editor
/
plugins
/
core
/
edumed
/
choice
/
choiceSingle.js
diff --git
a/src/editor/plugins/core/edumed/choice/choiceSingle.js
b/src/editor/plugins/core/edumed/choice/choiceSingle.js
index
9346363
..
68ff576
100644
(file)
--- a/
src/editor/plugins/core/edumed/choice/choiceSingle.js
+++ b/
src/editor/plugins/core/edumed/choice/choiceSingle.js
@@
-13,6
+13,7
@@
var $ = require('libs/jquery'),
var choiceSingle = Object.create(choiceBase);
_.extend(choiceSingle, {
type: 'single',
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);
init: function() {
this._comboName = _.uniqueId('edumed_exercise_hash_');
choiceBase.init.call(this);
@@
-43,7
+44,7
@@
_.extend(choiceSingle, {
});
var RadioView = function(checked, name, onValueChange) {
});
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() {
.attr('checked', checked)
.attr('name', name);
this.dom.on('change', function() {