Methods
(inner) delete_game(btn) → {Boolean}
Do the delete Post request to the server
Parameters:
Name | Type | Description |
---|---|---|
btn |
Button | The Button that was pressed |
Returns:
False to not reload the page
- Type
- Boolean
(inner) filter_games()
Only show the matched game titles insert in the "search" text
(inner) get_list_from_games(games)
Parameters:
Name | Type | Description |
---|---|---|
games |
Array.<object> | Games need to habe .name property |
Returns:
string html string for
(inner) save_games(form) → {Boolean}
Do the Post request to the server
Parameters:
Name | Type | Description |
---|---|---|
form |
object |
Returns:
False to not reload the page
- Type
- Boolean
(inner) toggle_game(btn)
Toogle the Checkbox if you click on the image of the game
Parameters:
Name | Type | Description |
---|---|---|
btn |
Button | Button to toggle |