Blame view

dictionary/static/js/all_statistics.js 433 Bytes
Bartłomiej Nitoń authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$(function() {

  $('#user-select').live('change', show_user_info);  
  show_user_info();

});

function show_user_info()
{ 
  var user_name = $('#user-select').val();

  if(user_name)
  {
    ShowProgressAnimation();
    $('#user-statistics').load(ajax_get_user_stats, "user_name="+user_name, function() {
      HideProgressAnimation();
    });  
  }
  else
  {
    $('#user-statistics').empty();
  }
}