mirror of
https://github.com/unraid/webgui.git
synced 2026-01-07 18:19:54 -06:00
GUI search: fix javascript errors
This commit is contained in:
@@ -105,8 +105,8 @@ function guiSearch() {
|
||||
var scrollText = (typeof searchInfo[1] != 'undefined') ? separator+searchInfo[1].replace(' ','%20').replace('-','%2d') : '';
|
||||
var newPage = "<?=$currentUnraidPage?>/Settings/Tools".replace(searchInfo[0]+'/','');
|
||||
|
||||
if (newPage == 'Dashboard/Settings/Tools') newPage = 'Settings';
|
||||
closeSearchBox(event);
|
||||
if (newPage == 'Dashboard/Settings/Tools') newPage = 'Settings';
|
||||
location.replace('/'+newPage+'/'+searchInfo[0]+scrollText);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user