Skip to content

Commit

Permalink
FLOE-403: add cookie name for persistence to distributeOptions block
Browse files Browse the repository at this point in the history
  • Loading branch information
waharnum committed Oct 30, 2015
1 parent db19d58 commit b26a757
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions demos/src/js/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ var demo = demo || {};
}
},
cookieStore: {
type: "fluid.prefs.cookieStore",
options: {
cookie: {
name: "chartAuthoring-demo"
}
}
type: "fluid.prefs.cookieStore"
// configurable by end user via distributeOptions
// options: {
// cookie: {
// name: "chartAuthoring-demo"
// }
// }

}
},
Expand All @@ -70,12 +71,17 @@ var demo = demo || {};
source: "{that}.options.links",
removeSource: true,
target: "{that > overviewPanel}.options.links"
}, {
source: "{that}.options.cookieName",
removeSource: true,
target: "{that > cookieStore}.options.cookie.name"
}]
});

$(document).ready(function () {
demo.chartAuthoring.overview("#floec-overviewPanel", {
overviewPanelTemplate: "src/html/overviewPanelTemplate-chartAuthoring.html",
cookieName: "chartAuthoring-demo",
strings: {
componentName: "Chart Authoring Tool",
infusionCodeLinkText: "get Chart Authoring",
Expand Down

0 comments on commit b26a757

Please sign in to comment.