Skip to content

Commit

Permalink
Fix nano onclose errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed May 22, 2024
1 parent 2a70495 commit 010777f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/game/machinery/telecomms/machine_interactions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
dat += "</font>"
temp = ""
show_browser(user, dat, "[src] Access", "tcommachine", "size=520x500;can_resize=0")
onclose(user, "dormitory")
onclose(user, "tcommachine")


// Off-Site Relays
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/circuitboards/airlock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
t1 += text("<p><a href='?src=\ref[];close=1'>Close</a></p>\n", src)

show_browser(user, t1, "Access Control", "airlock_electronics")
onclose(user, "airlock")
onclose(user, "airlock_electronics")


/obj/item/circuitboard/airlock/Topic(href, href_list)
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/items/devices/dummy_tablet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=reset'>Reset</A> \]"
dat += "<BR><hr>"

show_browser(user, dat, "Professor DUMMY Control Tablet", window_options="size=400x500")
onclose(user, "communications")
show_browser(user, dat, "Professor DUMMY Control Tablet", "dummytablet", window_options="size=400x500")
onclose(user, "dummytablet")
updateDialog()
return

Expand Down
2 changes: 1 addition & 1 deletion code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ GLOBAL_LIST_INIT(bgstate_options, list(
dat += "</div></body>"

winshow(user, "preferencewindow", TRUE)
show_browser(user, dat, "Preferences", "preferencebrowser")
show_browser(user, dat, "Preferences", "preferencewindow")
onclose(user, "preferencewindow", src)

/**
Expand Down

0 comments on commit 010777f

Please sign in to comment.