Commit d90896df authored by bbaer's avatar bbaer
Browse files

Problem with current user not working was incorrect JSON formatting

parent 19ae6b29
Pipeline #1445 passed with stage
in 2 minutes and 5 seconds
...@@ -76,7 +76,6 @@ var QfqNS = QfqNS || {}; ...@@ -76,7 +76,6 @@ var QfqNS = QfqNS || {};
// Get data of a file and write it to data.text // Get data of a file and write it to data.text
$.get(this.data.url, function(response) { $.get(this.data.url, function(response) {
that.data.text = response; that.data.text = response;
console.log(response);
that._prepareBuild(); that._prepareBuild();
}); });
} else if (this.data.text) { } else if (this.data.text) {
......
...@@ -5,10 +5,9 @@ ...@@ -5,10 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="../css/bootstrap.min.css"> <link rel="stylesheet" href="../extension/Resources/Public/Css/bootstrap.min.css">
<link rel="stylesheet" href="../css/bootstrap-theme.min.css"> <link rel="stylesheet" href="../extension/Resources/Public/Css/bootstrap-theme.min.css">
<link rel="stylesheet" href="../css/jqx.base.css">
<link rel="stylesheet" href="../css/jqx.bootstrap.css">
<link rel="stylesheet" href="../extension/Resources/Public/Css/qfq-bs.css"> <link rel="stylesheet" href="../extension/Resources/Public/Css/qfq-bs.css">
<title>Input Mode Switcher</title> <title>Input Mode Switcher</title>
...@@ -36,14 +35,14 @@ ...@@ -36,14 +35,14 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-2"></div> <div class="col-md-2"></div>
<div class="col-md-8"> <div class="col-md-8">
<div class="annotate-text" <div class="annotate-text"
data-uid='{uid: 5, name: "Definitely not an AI", avatar: "mockData/avatar1.png"}' data-uid='{ "uid": 5,
"name": "Definitely not an AI",
"avatar": "mockData/avatar1.png"}'
data-file="../javascript/src/CodeCorrection.js" data-file="../javascript/src/CodeCorrection.js"
data-target="codeCorrection-output1" data-target="codeCorrection-output1"
data-highlight="mockData/javascript.json" data-highlight="mockData/javascript.json"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment