From 9a2f2b95a3e9e4c1ce1aaea57e6bed03e1f48d22 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Wed, 14 Mar 2012 21:21:41 -0600 Subject: [PATCH] use a 'wait' screen for the is this your computer question, needs styling and yes and no buttons to do the right thing --- .../dialog/controllers/is_this_your_computer.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/resources/static/dialog/controllers/is_this_your_computer.js b/resources/static/dialog/controllers/is_this_your_computer.js index 6f5bef2d0..ed0d43d5e 100644 --- a/resources/static/dialog/controllers/is_this_your_computer.js +++ b/resources/static/dialog/controllers/is_this_your_computer.js @@ -21,12 +21,25 @@ BrowserID.Modules.IsThisYourComputer = (function() { options.ready && options.ready(status || false); }; - self.renderDialog("is_this_your_computer", options); + self.renderWait("is_this_your_computer", options); + + self.click("button.this_is_my_computer", self.yes); + self.click("button.this_is_not_my_computer", self.no); Module.sc.start.call(self, options); + }, + + yes: function() { + alert("yes!"); + }, + + no: function() { + alert("no!"); } + }); + return Module; }()); -- GitLab