From a77746e9fda5fe24c36d7d262544fb93ffeb294a Mon Sep 17 00:00:00 2001 From: Kevin Mehall Date: Thu, 19 Sep 2013 10:31:53 -0400 Subject: [PATCH] Pull code that only has to run once out of the loop (imported from commit 8c31c4bda6bf41e130fc4704d5520f500b9321f8) --- static/js/onboarding.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/static/js/onboarding.js b/static/js/onboarding.js index 380edaba6b..8870697028 100644 --- a/static/js/onboarding.js +++ b/static/js/onboarding.js @@ -91,16 +91,16 @@ function set_up_checklist() { if (register_action !== undefined) { register_action(step_info[step].status); } - - $(document.body).one('click', "#get-the-app", function (e) { - exports.mark_checklist_step("made_app_sticky"); - }); - $(document.body).one('click', "#set-up-integration", function (e) { - exports.mark_checklist_step("set_up_integration"); - }); - - $("#onboarding").show(); }); + + $(document.body).one('click', "#get-the-app", function (e) { + exports.mark_checklist_step("made_app_sticky"); + }); + $(document.body).one('click', "#set-up-integration", function (e) { + exports.mark_checklist_step("set_up_integration"); + }); + + $("#onboarding").show(); } exports.initialize = function () {