diff --git a/app/controllers/exercise_controller.rb b/app/controllers/exercise_controller.rb index 77302c5db..54f8309ea 100644 --- a/app/controllers/exercise_controller.rb +++ b/app/controllers/exercise_controller.rb @@ -353,7 +353,7 @@ class ExerciseController < ApplicationController ea.exercise_choice_id = params[:exercise_choice_id] if ea.save @percent = get_percent(@exercise,User.current) - render :json => {:text => "true",:percent => format("%.2f" ,@percent)} + render :json => {:text => "ok",:percent => format("%.2f" ,@percent)} else render :json => {:text => "failure"} end diff --git a/app/views/exercise/_exercise_student.html.erb b/app/views/exercise/_exercise_student.html.erb index bc91ead85..0b12b917e 100644 --- a/app/views/exercise/_exercise_student.html.erb +++ b/app/views/exercise/_exercise_student.html.erb @@ -4,6 +4,9 @@ $("#homework_page_right").css("min-height",$("#LSide").height()-30); $("#Container").css("width","1000px"); }); + function getTime() { + + }