Lines Matching refs:gSelectedIndex
1517 var gSelectedIndex = -1; variable
1556 gSelectedIndex = $('#search_filtered li').index(this);
1587 set_item_selected($li, i == gSelectedIndex);
1601 set_item_selected($li, i == gSelectedIndex);
1626 if (!$('#search_filtered_div').hasClass('no-display') || (gSelectedIndex < 0)) {
1638 } else if (kd && gSelectedIndex >= 0) {
1639 window.location = $("a",$('#search_filtered li')[gSelectedIndex]).attr("href");
1645 if ($($("#search_filtered li")[gSelectedIndex-1]).hasClass("header")) {
1647 gSelectedIndex--;
1648 $('#search_filtered_div li:nth-child('+(gSelectedIndex+1)+')').addClass('jd-selected');
1650 if (gSelectedIndex >= 0) {
1652 gSelectedIndex--;
1653 $('#search_filtered_div li:nth-child('+(gSelectedIndex+1)+')').addClass('jd-selected');
1659 if ($($("#search_filtered li")[gSelectedIndex+1]).hasClass("header")) {
1661 gSelectedIndex++;
1662 $('#search_filtered_div li:nth-child('+(gSelectedIndex+1)+')').addClass('jd-selected');
1664 if ((gSelectedIndex < $("ul#search_filtered li").length-1) ||
1665 ($($("#search_filtered li")[gSelectedIndex+1]).hasClass("header"))) {
1667 gSelectedIndex++;
1668 $('#search_filtered_div li:nth-child('+(gSelectedIndex+1)+')').addClass('jd-selected');
1679 gSelectedIndex = -1;