Commit 50b087198d6d46641fae7c161a5468664631c0a4

  • avatar
  • arvind
  • Tue Jul 03 16:00:10 IST 2012
Fixing config var names in ui.js
  
4242 var para = document.createElement("p");
4343 var newel = document.createElement("a");
4444 newel.textContent = menu_list[i];
45 $(newel).attr("href",config.url+"/?foruri="+a['foruri']+"&lang="+menu_list[i]+"&interactive=1");
45 $(newel).attr("href",config.deploy+"/?foruri="+a['foruri']+"&lang="+menu_list[i]+"&interactive=1");
4646 para.appendChild(newel);
4747 xyz.appendChild(para);
4848 }
7676 xhr.send('url='+a['foruri']);
7777
7878 req = {"about":decodeURIComponent(a['foruri']), "lang":a['lang']};
79 $.getJSON('http://127.0.0.1:5000/info?', req, function(data)
79 $.getJSON(config.deploy+'/info?', req, function(data)
8080 {
8181 a11ypi.responseJSON = data;
8282 });
939939 $(event.target).removeClass('highlightElement');
940940 },
941941 showInfo: function(data) {
942 infoWindow = window.open('blank','Info page');
942 infoWindow = window.open(config.deploy+'/blank','Info page');
943943 window.setTimeout(function(){a11ypi.pushInfo(infoWindow.document.getElementById('info_content'),infoWindow,data);},2500);
944944 },
945945 pushInfo: function(ele, win, data) //ele contains the info_content element from blank.html