Commit 5ca67162191a35e629d4cef78f44f2f65d9bb89e
1 parent
eb6eea28
adicinado mais parametros no metodo get_widget_data
Showing
1 changed file
with
12 additions
and
1 deletions
js/client/Readme_pt_br.md
| @@ -331,7 +331,18 @@ Você pode requisitar um recurso no servidor antes de renderizar. | @@ -331,7 +331,18 @@ Você pode requisitar um recurso no servidor antes de renderizar. | ||
| 331 | 331 | ||
| 332 | ```javascript | 332 | ```javascript |
| 333 | Funifier.auth.isAuthenticate(function(isAuthenticate) { | 333 | Funifier.auth.isAuthenticate(function(isAuthenticate) { |
| 334 | - Funifier.api('get_widget_data', {include_challenges: true}, function(err,json){ | 334 | + Funifier.api('get_widget_data', |
| 335 | + { | ||
| 336 | + include_teams: true, | ||
| 337 | + include_levels: true, | ||
| 338 | + include_challenges: true, | ||
| 339 | + include_catalogs: true, | ||
| 340 | + include_leaderboards: true, | ||
| 341 | + include_friends: true, | ||
| 342 | + include_actions: true, | ||
| 343 | + include_points: true, | ||
| 344 | + include_game: true | ||
| 345 | + }, function(err,json){ | ||
| 335 | json.isAuthenticate = isAuthenticate; | 346 | json.isAuthenticate = isAuthenticate; |
| 336 | var str = Mustache.render(theme_html,json); | 347 | var str = Mustache.render(theme_html,json); |
| 337 | render(str,function(config){ | 348 | render(str,function(config){ |