Commit 3fa1cd5db3c225b2c21a4b831835f110203fd16a

  • avatar
  • arvind
  • Fri Jul 05 14:15:18 IST 2013
UI changes
  - Fixing calls to /domain and showing of re-narrated pages in a domain
  
470470
471471 string=''
472472 if len(query)==0:
473 return 'empty'
473 return jsonify({'0':'empty'})
474474 else:
475 otherlist = []
475 otherlist = {}
476 cntr = -1
476477 mylist = query[0]['narration']
477478 for i in mylist:
478479 if i in otherlist:
479480 pass
480481 else:
481 otherlist.append(str(i))
482 return json.dumps(otherlist)
482 cntr += 1
483 otherlist[cntr] = str(i)
484 return jsonify(otherlist)
483485
484486
485487import logging,os
  
737737 // xhr.send('url='+a['foruri'])
738738
739739 $.get(config.deploy+"/domain", {"url":a['foruri']}, function(data){
740 a11ypi.showlinks = JSON.parse(data);
740 if(data[0] != 'empty')
741 {
742 a11ypi.showlinks = data;
743 $('#see-links').show();
744 }
741745 });
742746 },
743747 showBox1: function() {
763763 createDomainMenu: function() {
764764 var xyz = $("#show-links");
765765 xyz.html('');
766 menu_list = a11ypi.showlinks;
767 for(var i=0; i<menu_list.length;i++)
766 for(var i in a11ypi.showlinks)
768767 {
769768 var para = document.createElement("p");
770769 var newel = document.createElement("a");
771 newel.textContent = menu_list[i];
772 newel.setAttribute("href", config.deploy+"/?foruri="+encodeURIComponent(menu_list[i]));
770 newel.textContent = a11ypi.showlinks[i];
771 newel.setAttribute("href", config.deploy+"/?foruri="+encodeURIComponent(a11ypi.showlinks[i]));
773772 newel.setAttribute("class","alipiShowLink");
774773 para.appendChild(newel);
775774 xyz.append(para);