anchor.diff:  event({update, Version}) ->
       gui_jq:hide(<<"update_panel">>),
       gui_jq:hide(<<"error_message">>),
  +    gui_jq:hide(<<"ok_message">>),
       gui_jq:show(<<"update_progress">>),
       ForceReload = get(?FORCE_RELOAD),
       Pid = get(?COMET_PID),
  
positive.code:             {finish, UpdaterState} ->
                  gui_jq:update(<<"job_progress_text">>, <<"">>),
                  gui_jq:update(<<"stage_progress_text">>, <<"">>),
                  case updater_state:get_error_stack(UpdaterState) of
                      {[], _} ->
                          gui_jq:set_width(<<"job_bar">>, <<"100%">>),
                          gui_jq:set_width(<<"stage_bar">>, <<"100%">>),
                          gui_comet:flush(),
                          onepanel_gui_utils:change_page(?CURRENT_UPDATE_PAGE, ?PAGE_UPDATE_SUCCESS),
                          gui_comet:flush();
                      _ ->
                          onepanel_gui_utils:message(<<"error_message">>, <<"An error occurred during update process.">>),
                          gui_jq:set_width(<<"job_bar">>, <<"0%">>),
                          gui_jq:set_width(<<"stage_bar">>, <<"0%">>),
                          gui_jq:show(<<"update_panel">>),
                          gui_jq:hide(<<"update_progress">>),
                          gui_comet:flush()
                  end,
                  State
          end
                 catch Type:Reason ->
  
negative.code:     {JobsCount - length(lists:dropwhile(fun(J) -> J =/= Job end, Jobs)) + 1, JobsCount}.
  
  
  %% get_job_progress/4
  %% ====================================================================
  %% @doc Returns overall jobs progress in current stage and also progress
  %% of current job.
  -spec get_job_progress(JobProgress :: float(), JobIndex :: integer(), JobsCount :: integer(), ActionType :: atom()) -> Result
      when Result :: {JobsProgress :: float(), NewJobProgress :: float()}.
  %% ====================================================================
  get_job_progress(JobProgress, JobIndex, JobsCount, install) ->
      NewProgress = (JobProgress + 1) / 2,
      {100 * (JobIndex + JobProgress - 1) / JobsCount, NewProgress};
  