~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/settings/settings.js

  • Committer: mattgiuca
  • Date: 2008-02-25 01:17:22 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:560
settings: Python code generates all of the HTML for the static page.
The JavaScript makes a call to get the data but doesn't yet populate the page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Date: 25/2/2008
21
21
 */
22
22
 
 
23
function onload()
 
24
{
 
25
    populate();
 
26
}
 
27
 
 
28
/* Populate the page with this user's account details */
 
29
function populate()
 
30
{
 
31
    var callback = function(xhr)
 
32
        {
 
33
            user = JSON.parse(xhr.responseText);
 
34
        }
 
35
    /* Just get details for the logged in user */
 
36
    ajax_call(callback, "userservice", "get_user", {}, "GET");
 
37
}