<% if params[:user_changed] %>
  $('#container_projects').html('<%= j(render :partial => 'container_projects') %>').show();
  $('#top_last_entries').html('<%= j(render :partial => 'top_last_entries', :locals => {:top_last_entries => @top_last_entries}) %>').show();
<% end %>
<% if params[:project_changed] %>
$('#container_users').html('<%= j(render :partial => 'container_users') %>').show();
<% end %>
<% if params[:user_changed] || params[:project_changed] %>
$('#container_issues').html('<%= j(render :partial => 'container_issues') %>').show();
<% end %>
<% if params[:user_changed] || params[:project_changed] || params[:issue_changed] || params[:activity_changed] %>
  $('#container_time_entry').html('<%= j(render :partial => 'container_time_entry') %>').show();
<% end %>
<% if params[:user_changed] || params[:spent_on_changed] %>
  $('#user-spent-time').html('<%= j(render :partial => 'timelog/user_spent_time', :locals => {:spent_on => @time_entry.spent_on, :user => @time_entry.user, :back_url => bulk_time_entries_path(:spent_on => @time_entry.spent_on )}) %>');
  $('#easy_worker_gauge_meter_container').html('<%= j(render :partial => 'common/charts/gauge_meter', :locals => {:modul_uniq_id => '', :value => @gauge_meter_spent_time, :max_value => @gauge_meter_max_value, :chart_label => @gauge_meter_label}) %>').show();
<% end %>

if (typeof CKEDITOR !== 'undefined') {
  CKEDITOR.instances.time_entry_comment && CKEDITOR.instances.time_entry_comment.setData( '<%= raw j @time_entry.comments %>' );
}
$('#save_buttons').show();
initEasyAutocomplete();
