Pull code that only has to run once out of the loop

(imported from commit 8c31c4bda6bf41e130fc4704d5520f500b9321f8)
This commit is contained in:
Kevin Mehall 2013-09-19 10:31:53 -04:00
parent bc36aad698
commit a77746e9fd
1 changed files with 9 additions and 9 deletions

View File

@ -91,16 +91,16 @@ function set_up_checklist() {
if (register_action !== undefined) { if (register_action !== undefined) {
register_action(step_info[step].status); 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 () { exports.initialize = function () {