mirror of
https://github.com/unraid/webgui.git
synced 2026-02-25 03:38:44 -06:00
Update emhttp/plugins/dynamix.gui.search/gui_search.page
This commit is contained in:
@@ -104,7 +104,10 @@ function guiSearch() {
|
||||
closeSearchBox(event);
|
||||
if (newPage == 'Dashboard/Settings/Tools') newPage = 'Settings';
|
||||
|
||||
// If a hook script is present in the current page execute it before navigating away
|
||||
/**
|
||||
* Prevents Community Apps from crashing
|
||||
* Hook script provided by CA - https://github.com/unraid/community.applications/blob/master/source/community.applications/usr/local/emhttp/plugins/community.applications/javascript/helpers.js
|
||||
*/
|
||||
if ( typeof guiSearchOnUnload === "function" ) {
|
||||
guiSearchOnUnload();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user