summaryrefslogtreecommitdiffstats
path: root/tools/Sandcastle/Presentation/vs2005/Scripts/CommonUtilities.js
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-03-11 21:16:19 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2012-03-11 21:16:19 -0700
commit6c29eba4701e48222941981d499eb08686788a22 (patch)
tree5e8d9e3b9cc175d3b4e7f214e31d6b0e235467cb /tools/Sandcastle/Presentation/vs2005/Scripts/CommonUtilities.js
parent4cc2523e6f2c2f9975d3328ae983cc509c449315 (diff)
downloadDotNetOpenAuth-6c29eba4701e48222941981d499eb08686788a22.zip
DotNetOpenAuth-6c29eba4701e48222941981d499eb08686788a22.tar.gz
DotNetOpenAuth-6c29eba4701e48222941981d499eb08686788a22.tar.bz2
Upgraded to Sandcastle June 2010 release (changeset 54478).
Diffstat (limited to 'tools/Sandcastle/Presentation/vs2005/Scripts/CommonUtilities.js')
-rw-r--r--tools/Sandcastle/Presentation/vs2005/Scripts/CommonUtilities.js35
1 files changed, 17 insertions, 18 deletions
diff --git a/tools/Sandcastle/Presentation/vs2005/Scripts/CommonUtilities.js b/tools/Sandcastle/Presentation/vs2005/Scripts/CommonUtilities.js
index 42a9360..7b4e167 100644
--- a/tools/Sandcastle/Presentation/vs2005/Scripts/CommonUtilities.js
+++ b/tools/Sandcastle/Presentation/vs2005/Scripts/CommonUtilities.js
@@ -312,25 +312,24 @@ function ShowBasedOnInheritance(memberdata)
return false;
}
-function ShowBasedOnFramework(memberdata)
-{
- var isNetfw = (memberdata.indexOf("notNetfw") == -1);
- var isNetcfw = (memberdata.indexOf("netcfw") != -1);
- var isXnafw = (memberdata.indexOf("xnafw") != -1);
-
- var netfwCheck = docSettings["netfwCheckbox"];
- var netcfwCheck = docSettings["netcfwCheckbox"];
- var xnafwCheck = docSettings["xnafwCheckbox"];
-
- // if all the checkboxes are null, it means we have no framework filter; so return true to show member by default
- if (netfwCheck == null && netcfwCheck == null && xnafwCheck == null)
- return true;
+function ShowBasedOnFramework(memberdata) {
- var showNetfw = (netfwCheck == "on");
- var showNetcfw = (netcfwCheck == "on");
- var showXnafw = (xnafwCheck == "on");
-
- if ( (isNetfw && showNetfw) || (isNetcfw && showNetcfw) || (isXnafw && showXnafw) )
+ var splitData = memberdata.split(";");
+ var foundNotNetfw = false;
+ var frameworkFilter = document.getElementById('memberFrameworksMenu') != null;
+
+ for (var i = 0; i < splitData.length; i++) {
+
+ if (splitData[i] == "notNetfw") {
+ foundNotNetfw = true;
+ continue;
+ }
+ if (docSettings[splitData[i] + "Checkbox"] == "on")
+ return true;
+ }
+ if (!foundNotNetfw && docSettings["netfwCheckbox"] == "on")
+ return true;
+ if (foundNotNetfw && docSettings["netfwCheckbox"] == null && !frameworkFilter)
return true;
return false;