projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make API object propagate authentication failures
[blerg.git]
/
www
/
jssrc
/
blerg
/
Blerg.js
diff --git
a/www/jssrc/blerg/Blerg.js
b/www/jssrc/blerg/Blerg.js
index
361b0c9
..
80037c4
100644
(file)
--- a/
www/jssrc/blerg/Blerg.js
+++ b/
www/jssrc/blerg/Blerg.js
@@
-13,7
+13,8
@@
enyo.kind({
onSetTitle: "setTitle",
onPostVisibility: "postVisibilityUpdate",
onReload: "sendReload",
onSetTitle: "setTitle",
onPostVisibility: "postVisibilityUpdate",
onReload: "sendReload",
- onShowChangePassword: "showChangePassword"
+ onShowChangePassword: "showChangePassword",
+ onAuthFailure: "authFailure"
},
components: [
{classes: "blerg-header", components: [
},
components: [
{classes: "blerg-header", components: [
@@
-99,5
+100,8
@@
enyo.kind({
},
showChangePassword: function() {
this.$.passwdDialog.show();
},
showChangePassword: function() {
this.$.passwdDialog.show();
+ },
+ authFailure: function(inSender, inEvent) {
+ this.logout();
}
});
}
});