diff --git a/lib/multiple-results.php b/lib/multiple-results.php index fe63efd..857ae9e 100644 --- a/lib/multiple-results.php +++ b/lib/multiple-results.php @@ -94,7 +94,7 @@ if (startTab!=top.ICEcoder.selectedTab) { } } if (userTarget.indexOf("all")>-1 || (userTarget.indexOf("selected")>-1 && foundInSelected)) { - resultsDisplay += ''; + resultsDisplay += ''+targetURL.replace(/\|/g,"/").replace(/_perms/g,"")+'\')},20);top.ICEcoder.showHide(\'hide\',top.get(\'blackMask\'))">'; resultsDisplay += targetURL.replace(/\|/g,"/").replace(/_perms/g,"").replace(//g,""+findText.toLowerCase()+""); resultsDisplay += '
'; @@ -146,7 +146,7 @@ if (startTab!=top.ICEcoder.selectedTab) { } } if (!$bFile && (count($selectedFiles)==0 || count($selectedFiles)>0 && $foundInSelFile)) { - $ret .= ""; + $ret .= ""; $ret .= str_replace($base,"",$fullPath)."
".$t['Found']." ".substr_count(strtolower(toUTF8noBOM(file_get_contents($fullPath,false,$context),false)),$q)." ".$t['times']."
"; if (isset($_GET['replace'])) { $ret .= "
".$t['replace']."
"; @@ -222,6 +222,18 @@ var renameAll = function() { } top.ICEcoder.showHide('hide',top.get('blackMask')); } + +var goFindAfterOpen = function(fileName) { + if (top.ICEcoder.openFiles[top.ICEcoder.selectedTab-1] == fileName.replace(top.docRoot,"") && !top.ICEcoder.loadingFile) { + // Change options back to finding only in this document + top.document.findAndReplace.connector.selectedIndex = 0; + top.ICEcoder.findReplaceOptions(); + top.document.findAndReplace.target.selectedIndex = 0; + // Submit to select first instance + top.document.findAndReplace.submit.click(); + clearInterval(top.ICEcoder.goFindAfterOpenInt); + } +}