From 7a288277d7237e9654b37dc87a089cae2b3aa2c1 Mon Sep 17 00:00:00 2001 From: Arrehn Date: Thu, 25 Aug 2011 09:03:24 -0400 Subject: [PATCH] FIRE-1971: Quick warning that disabling cookies/javacript break search, Selo Jacobus --- indra/newview/llfloaterpreference.cpp | 14 ++++++++++++++ indra/newview/llfloaterpreference.h | 2 ++ .../newview/skins/default/xui/en/notifications.xml | 14 ++++++++++++++ .../default/xui/en/panel_preferences_setup.xml | 13 ++++++++++--- 4 files changed, 40 insertions(+), 3 deletions(-) diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 8359d3f96e..698b11f796 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -322,6 +322,8 @@ LLFloaterPreference::LLFloaterPreference(const LLSD& key) mCommitCallbackRegistrar.add("Pref.BrowseLogPath", boost::bind(&LLFloaterPreference::onClickBrowseChatLogDir, this)); mCommitCallbackRegistrar.add("Pref.ResetCache", boost::bind(&LLFloaterPreference::onClickResetCache, this)); mCommitCallbackRegistrar.add("Pref.ClearCache", boost::bind(&LLFloaterPreference::onClickClearCache, this)); + mCommitCallbackRegistrar.add("Pref.Cookies", boost::bind(&LLFloaterPreference::onClickCookies, this)); + mCommitCallbackRegistrar.add("Pref.Javascript", boost::bind(&LLFloaterPreference::onClickJavascript, this)); // mCommitCallbackRegistrar.add("Pref.ClickSkin", boost::bind(&LLFloaterPreference::onClickSkin, this,_1, _2)); // mCommitCallbackRegistrar.add("Pref.SelectSkin", boost::bind(&LLFloaterPreference::onSelectSkin, this)); mCommitCallbackRegistrar.add("Pref.VoiceSetKey", boost::bind(&LLFloaterPreference::onClickSetKey, this)); @@ -1026,6 +1028,18 @@ void LLFloaterPreference::onClickClearSettings() LLNotificationsUtil::add("FirestormClearSettingsPrompt",LLSD(), LLSD(), callback_clear_settings); } +//[FIX JIRA-1971 : SJ] Show an notify when Cookies setting change +void LLFloaterPreference::onClickCookies() +{ + LLNotificationsUtil::add("DisableCookiesBreaksSearch"); +} + +//[FIX JIRA-1971 : SJ] Show an notify when Javascript setting change +void LLFloaterPreference::onClickJavascript() +{ + LLNotificationsUtil::add("DisableJavascriptBreaksSearch"); +} + /* void LLFloaterPreference::onClickSkin(LLUICtrl* ctrl, const LLSD& userdata) { diff --git a/indra/newview/llfloaterpreference.h b/indra/newview/llfloaterpreference.h index dbb5ce798e..ef5c273b42 100644 --- a/indra/newview/llfloaterpreference.h +++ b/indra/newview/llfloaterpreference.h @@ -133,6 +133,8 @@ public: void onClickBrowseChatLogDir(); void onClickResetCache(); void onClickClearCache(); + void onClickCookies(); + void onClickJavascript(); void onClickBrowseSettingsDir(); void onClickSkin(LLUICtrl* ctrl,const LLSD& userdata); void onSelectSkin(); diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 74394a8b43..143cba586c 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -972,6 +972,20 @@ Would you like to disable all popups which can be skipped? Cache will be cleared after restarting [APP_NAME]. + + The search function relies on Cookies, disabling Cookies will break Search. + + + + The Search function relies on Javascript, disabling Javascript will break Search. + + + top_pad="2"> + + + top_pad="2"> + + +