Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bzar committed Jan 12, 2013
1 parent 7753722 commit 63fcbe3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions client/src/base.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,5 @@ e.zeroPad = zeroPad
e.addChatMessage = addChatMessage
e.initializeChat = initializeChat
e.Paginator = Paginator
e.forEachProperty
e.getObjectWithId
e.forEachProperty = forEachProperty
e.getObjectWithId = getObjectWithId
3 changes: 1 addition & 2 deletions client/src/creategame.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require ["Theme", "Map", "gamenode", "base"], (Theme, Map) ->
mapPainter = null
$(document).ready ->
loginUrl = "login.html?next=" + document.location.pathname + document.location.search
session = resumeSessionOrRedirect(client, WARS_CLIENT_SETTINGS.gameServer, loginUrl, ->
session = resumeSessionOrRedirect client, WARS_CLIENT_SETTINGS.gameServer, loginUrl, ->
client.stub.profile (response) ->
theme = new Theme(response.profile.settings.gameTheme)
theme.load ->
Expand All @@ -27,7 +27,6 @@ require ["Theme", "Map", "gamenode", "base"], (Theme, Map) ->
showMaps()
else
showFullMapPreview()
)

initializeControls = ->
$("#turnTimeLimit").change ->
Expand Down
2 changes: 1 addition & 1 deletion client/src/pregame.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ require ["Theme", "Map", "gamenode", "base"], (Theme, Map) ->
e.preventDefault()
client.stub.deleteGame gameId, (response) ->
if response.success
document.location = "/home.html"
document.location = "/login.html"
else
alert "Error deleting game! " + response.reason

Expand Down
4 changes: 2 additions & 2 deletions client/www/base.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/www/pregame.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63fcbe3

Please sign in to comment.