~george-edison55/stackapplet/1.5.2

« back to all changes in this revision

Viewing changes to html/index.html

  • Committer: Nathan Osman
  • Date: 2014-06-19 03:57:38 UTC
  • Revision ID: admin@quickmediasolutions.com-20140619035738-3a6pho92etal298t
Fixed incorrect URL for Stack Auth list of sites.

Show diffs side-by-side

added added

removed removed

Lines of Context:
435
435
    RefreshSettings();
436
436
    $('#tab_bar').tabs();
437
437
    
438
 
    $.ajax({ url: 'http://stackauth.com/1.0/sites?key=_qlxmEAOH06hLA1_FsZIGQ',
 
438
    $.ajax({ url: 'http://api.stackexchange.com/2.2/sites?pagesize=100&key=VN8jyf7k8STlkO3lx*iw6w((',
439
439
             dataType: 'jsonp',
440
440
             jsonp: 'jsonp',
441
441
             success: function(data) {
442
442
                 
443
443
                 var site_str  = '';
444
444
                 
445
 
                 for(var i=0;i<data['api_sites'].length;++i)
 
445
                 for(var i=0;i<data['items'].length;++i)
446
446
                 {
447
 
                     site_str += '<option value="' + data['api_sites'][i]['site_url'] + '">' +
448
 
                                 data['api_sites'][i]['name'] + '</option>';
 
447
                     site_str += '<option value="' + data['items'][i]['site_url'] + '">' +
 
448
                                 data['items'][i]['name'] + '</option>';
449
449
                 }
450
450
                 
451
451
                 $('#site_list').html(site_str);