diff options
Diffstat (limited to 'js/codeq/problem_list.js')
-rw-r--r-- | js/codeq/problem_list.js | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/js/codeq/problem_list.js b/js/codeq/problem_list.js index e28e672..97bac25 100644 --- a/js/codeq/problem_list.js +++ b/js/codeq/problem_list.js @@ -280,32 +280,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ if (!ref) { codeq.log.error('Clicked on a problem link having erroneous index: ' + index); return; - }//TODO - /*codeq.wait( - Q.all([ - codeq.comms.getCurrentSolution(ref.id), // the current user's solution to the selected problem - getProblemData(language, ref.g, ref.p) // the (cached) result of processProblemData() - ]) - .spread(function (userProblemData, generalProblemData) { - if (userProblemData.code !== 0) throw new Error('Failed to obtain user problem data, code: ' + userProblemData.code + ', message: ' + userProblemData.message); - if (!generalProblemData) throw new Error('General problem data is not defined'); - codeq.globalStateMachine.transition(language, generalProblemData, data.commonDef, userProblemData.data.solution); - }) - ) - .fail(function (reason) { - codeq.log.error('Failed to obtain the problem definition: ' + reason, reason); - alert('Failed to obtain the problem definition: ' + reason); - }) - .done();*/ - /*loadProblemData(ref,data).then(function(tmp){ - codeq.log.debug("then:"+JSON.stringify(tmp)); - return tmp; - }) - .fail(function (reason) { - codeq.log.error('Failed to obtain the problem definition: ' + reason, reason); - alert('Failed to obtain the problem definition: ' + reason); - }) - .done(codeq.log.debug("done"));*/ + } codeq.globalStateMachine.transition(language,ref,data); }); }, |