diff --git a/indra/newview/llfloaterdirectory.cpp b/indra/newview/llfloaterdirectory.cpp index 2d04c3919..92daa4e2b 100644 --- a/indra/newview/llfloaterdirectory.cpp +++ b/indra/newview/llfloaterdirectory.cpp @@ -161,6 +161,20 @@ private: std::string mMarketplaceURL; }; +static void* createWebPanel(void* data) +{ + struct LLPanelDirWeb : public LLPanelDirFind + { + LLPanelDirWeb(LLFloaterDirectory* f) : LLPanelDirFind("web_panel", f, "web_search_browser") {} + /*virtual*/ void search(const std::string& url) {} + /*virtual*/ void navigateToDefaultPage() + { + if (mWebBrowser) mWebBrowser->navigateTo(getString("default_search_page")); + } + }; + return new LLPanelDirWeb(static_cast(data)); +} + LLFloaterDirectory* LLFloaterDirectory::sInstance = NULL; //static S32 LLFloaterDirectory::sOldSearchCount = 0; // debug @@ -205,6 +219,7 @@ LLFloaterDirectory::LLFloaterDirectory(const std::string& name) // web search and showcase only for SecondLife factory_map["find_all_panel"] = LLCallbackMap(createFindAll, this); factory_map["showcase_panel"] = LLCallbackMap(createShowcase, this); + if (!enableClassicAllSearch) factory_map["web_panel"] = LLCallbackMap(createWebPanel, this); } if (enableClassicAllSearch) diff --git a/indra/newview/skins/default/xui/en-us/floater_directory.xml b/indra/newview/skins/default/xui/en-us/floater_directory.xml index 32bd66d31..985895e50 100644 --- a/indra/newview/skins/default/xui/en-us/floater_directory.xml +++ b/indra/newview/skins/default/xui/en-us/floater_directory.xml @@ -696,6 +696,20 @@ To buy direct, visit the land and click on the place name in the title bar. Done https://marketplace.secondlife.com/notfound https://marketplace.secondlife.com/ + + + + + + Loading... + Done + http://search.secondlife.com/ + http://search.secondlife.com/