Commit d14b306985ee0da43b2f75b293e235c1d6636472
1 parent
f64d7f33
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Js login
Showing
2 changed files
with
17 additions
and
0 deletions
Show diff stats
plugins/oauth_client/lib/oauth_client_plugin.rb
| ... | ... | @@ -29,6 +29,14 @@ class OauthClientPlugin < Noosfero::Plugin |
| 29 | 29 | end |
| 30 | 30 | end |
| 31 | 31 | |
| 32 | + def body_ending | |
| 33 | + "<script>oauthPluginCloseLoginPopup(#{logged_in?});</script>" | |
| 34 | + end | |
| 35 | + | |
| 36 | + def js_files | |
| 37 | + 'main.js' | |
| 38 | + end | |
| 39 | + | |
| 32 | 40 | PROVIDERS = { |
| 33 | 41 | :facebook => { |
| 34 | 42 | :name => 'Facebook' | ... | ... |