Bug #267377 -->js error when selecting Save Search as a Folder when Quicksearch is empty

we should be disabling the save as search folder item from the drop down if there is no valid quick search text.

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2004-11-02 22:17:35 +00:00
parent eba1bc9fa3
commit 69681f7f30

View File

@ -676,7 +676,7 @@ function InitQuickSearchPopup()
// value is set to Find in message since you can't really create a VF from find
// in message
if (gSearchInput.searchMode == 4 /* find in page */)
if (gSearchInput.searchMode == 4 /* find in page */ || gSearchInput.value == "" || gSearchInput.showingSearchCriteria)
document.getElementById('quickSearchSaveAsVirtualFolder').setAttribute('disabled', 'true');
else
document.getElementById('quickSearchSaveAsVirtualFolder').removeAttribute('disabled');