Guest User

Untitled

a guest
Jan 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. if params[:value] == Result::MARKING_STATES[:complete] && @result.marks.find_by_mark(nil)
  2. render :update do |page|
  3. page.show 'criterion_incomplete_error'
  4. end
  5. else # Hide message (if any) and then continue as normal.
  6. render :update do |page|
  7. page.hide 'criterion_incomplete_error'
  8. end
  9.  
  10.  
  11. replaced with
  12.  
  13.  
  14. if params[:value] == Result::MARKING_STATES[:complete] && @result.marks.find_by_mark(nil)
  15. render :action => "show_criteria_error"
  16. else # Hide message (if any) and then continue as normal.
  17. render :action => "hide_criteria_error"
Add Comment
Please, Sign In to add comment