fnp
/
fnpeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
241b81f
)
minor cleanup
author
Jan Szejko
<janek37@gmail.com>
Thu, 17 Aug 2017 14:54:02 +0000
(16:54 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Thu, 17 Aug 2017 14:54:02 +0000
(16:54 +0200)
src/editor/plugins/core/edumed/choice/element.js
patch
|
blob
|
history
src/editor/plugins/core/edumed/choice/list.js
patch
|
blob
|
history
src/editor/plugins/core/edumed/gaps/element.js
patch
|
blob
|
history
src/editor/plugins/core/edumed/order/element.js
patch
|
blob
|
history
diff --git
a/src/editor/plugins/core/edumed/choice/element.js
b/src/editor/plugins/core/edumed/choice/element.js
index
0514dae
..
e456841
100644
(file)
--- a/
src/editor/plugins/core/edumed/choice/element.js
+++ b/
src/editor/plugins/core/edumed/choice/element.js
@@
-9,7
+9,7
@@
var choiceSingle = require('./choiceSingle'),
return [
{tag: 'div', klass: 'exercise.choice', prototype: choiceMulti},
{tag: 'div', klass: 'exercise.choice.single', prototype: choiceSingle},
return [
{tag: 'div', klass: 'exercise.choice', prototype: choiceMulti},
{tag: 'div', klass: 'exercise.choice.single', prototype: choiceSingle},
- {tag: 'div', klass: 'exercise.choice.true-or-false', prototype: choiceTrueOrFalse}
,
+ {tag: 'div', klass: 'exercise.choice.true-or-false', prototype: choiceTrueOrFalse}
];
});
];
});
diff --git
a/src/editor/plugins/core/edumed/choice/list.js
b/src/editor/plugins/core/edumed/choice/list.js
index
ed897c0
..
04891e4
100644
(file)
--- a/
src/editor/plugins/core/edumed/choice/list.js
+++ b/
src/editor/plugins/core/edumed/choice/list.js
@@
-74,8
+74,8
@@
var ItemView = function(node, exerciseView) {
this.container = exerciseView.element.createContainer(node.contents(), {
resetBackground: true,
this.container = exerciseView.element.createContainer(node.contents(), {
resetBackground: true,
- manages: function(node, originaParent) {
- return this.node.sameNode(node.parent() || originaParent);
+ manages: function(node, origina
l
Parent) {
+ return this.node.sameNode(node.parent() || origina
l
Parent);
}.bind(this),
dom: this.dom.find('.content')
});
}.bind(this),
dom: this.dom.find('.content')
});
diff --git
a/src/editor/plugins/core/edumed/gaps/element.js
b/src/editor/plugins/core/edumed/gaps/element.js
index
db8d0c5
..
1c3d8ea
100644
(file)
--- a/
src/editor/plugins/core/edumed/gaps/element.js
+++ b/
src/editor/plugins/core/edumed/gaps/element.js
@@
-8,8
+8,8
@@
var $ = require('libs/jquery'),
elementBase = require('plugins/core/edumed/elementBase'),
viewTemplate = require('libs/text!./view.html');
elementBase = require('plugins/core/edumed/elementBase'),
viewTemplate = require('libs/text!./view.html');
-var
OrderExercic
eElement = Object.create(elementBase);
-_.extend(
OrderExercic
eElement, {
+var
GapsExercis
eElement = Object.create(elementBase);
+_.extend(
GapsExercis
eElement, {
init: function() {
elementBase.init.call(this);
var view = $(_.template(viewTemplate)());
init: function() {
elementBase.init.call(this);
var view = $(_.template(viewTemplate)());
@@
-42,12
+42,6
@@
_.extend(OrderExerciceElement, {
}
});
}
});
-return {tag: 'div', klass: 'exercise.gap', prototype:
OrderExercic
eElement};
+return {tag: 'div', klass: 'exercise.gap', prototype:
GapsExercis
eElement};
});
});
-
-
-
-
-
-
diff --git
a/src/editor/plugins/core/edumed/order/element.js
b/src/editor/plugins/core/edumed/order/element.js
index
4fb7507
..
cff6815
100644
(file)
--- a/
src/editor/plugins/core/edumed/order/element.js
+++ b/
src/editor/plugins/core/edumed/order/element.js
@@
-9,8
+9,8
@@
var _ = require('libs/underscore');
var elementBase = require('plugins/core/edumed/elementBase'),
OrderExerciseView = require('./view');
var elementBase = require('plugins/core/edumed/elementBase'),
OrderExerciseView = require('./view');
-var OrderExerci
c
eElement = Object.create(elementBase);
-_.extend(OrderExerci
c
eElement, {
+var OrderExerci
s
eElement = Object.create(elementBase);
+_.extend(OrderExerci
s
eElement, {
init: function() {
elementBase.init.call(this);
init: function() {
elementBase.init.call(this);
@@
-129,6
+129,6
@@
_.extend(OrderExerciceElement, {
}
});
}
});
-return {tag: 'div', klass: 'exercise.order', prototype: OrderExerci
c
eElement};
+return {tag: 'div', klass: 'exercise.order', prototype: OrderExerci
s
eElement};
});
});