summaryrefslogtreecommitdiff
path: root/js/codeq/robot.js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-05-22 17:50:53 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-05-22 17:50:53 +0200
commit65647a77cf355db5f8553669e8666eb5639ad689 (patch)
tree9bb88fca41ace0cfd7fe54f5fe9d50f7480f10ab /js/codeq/robot.js
parent28316a2665f2c40b03a638e54dfdab925ccf4623 (diff)
Add support for per-problem initial code
Diffstat (limited to 'js/codeq/robot.js')
-rw-r--r--js/codeq/robot.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/codeq/robot.js b/js/codeq/robot.js
index bf9200f..1dd1fd6 100644
--- a/js/codeq/robot.js
+++ b/js/codeq/robot.js
@@ -86,7 +86,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
{
mode: 'python',
indentUnit: 4,
- value: currentSolution || ''
+ value: currentSolution || problemDef.initial || ''
},
function () {
jqBtnRun.focus();