diff --git a/resources/static/dialog/controllers/is_this_your_computer.js b/resources/static/dialog/controllers/is_this_your_computer.js index 6f5bef2d0bfc0fe3704a4f467f538ff10e030b8b..ed0d43d5ec7140e2bb230bee00b4d3671bb4bb9c 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; }());