Commit 66cc5c75004955ff41cfe86d30f2b2985f4d0698

  • avatar
  • arvind
  • Wed Jul 10 17:59:35 IST 2013
Fixing iteration over xpath and where for highlights
  
5151 backdrop: false,
5252 });
5353 $('.well a').click(function(event){
54 xpath = $(event.currentTarget).text().split('#')[1];
54 if($(event.currentTarget).text().search('#')){
55 len = $(event.currentTarget).text().split('#').len();
56 xpath = $(event.currentTarget).text().split('#')[len-1];
57 }
58 else
59 xpath = $(event.currentTarget).text();
5560 var nodes = document.evaluate(xpath, document, null, XPathResult.ANY_TYPE,null);
5661 result = nodes.iterateNext();
5762 while(result){