-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
executable file
·32 lines (24 loc) · 1.03 KB
/
Copy pathscript.js
File metadata and controls
executable file
·32 lines (24 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
////////////////////////////////////////////////////////////////////////////////
// CALLBACK API. Called by the greeeter //
// Here, we just integrate with angular, and call the functions on the scope. //
////////////////////////////////////////////////////////////////////////////////
// called when the greeter asks to show a login prompt for a user
function show_prompt(text) {
var scope = angular.element("#greeterbody").scope();
scope.show_prompt();
}
// called when the greeter asks to show a message
function show_message(text) {
var scope = angular.element("#greeterbody").scope();
scope.show_message(text);
}
// called when the greeter asks to show an error
function show_error(text) {
var scope = angular.element("#greeterbody").scope();
scope.show_message(text, true);
}
// called when the greeter is finished the authentication request
function authentication_complete() {
var scope = angular.element("#greeterbody").scope();
scope.authenticationComplete();
}