diff --git a/code/modules/nano/nanoui.dm b/code/modules/nano/nanoui.dm index 018e27d8272..e7cf5d3b201 100644 --- a/code/modules/nano/nanoui.dm +++ b/code/modules/nano/nanoui.dm @@ -93,12 +93,9 @@ nanoui is used to open and update nano browser uis * @return nothing */ /datum/nanoui/proc/add_common_assets() - //add_script("libraries.min.js") // The jQuery library - add_script("1-jquery.js") - add_script("2-jsviews.js") - add_script("3-jquery.timers.js") + add_script("libraries.min.js") // The jQuery library + add_script("nano_config.js") // The NanoConfig JS, this is used to store configuration values. add_script("nano_update.js") // The NanoUpdate JS, this is used to receive updates and apply them. - add_script("nano_config.js") // The NanoUpdate JS, this is used to receive updates and apply them. add_script("nano_base_helpers.js") // The NanoBaseHelpers JS, this is used to set up template helpers which are common to all templates add_stylesheet("shared.css") // this CSS sheet is common to all UIs add_stylesheet("icons.css") // this CSS sheet is common to all UIs @@ -263,8 +260,12 @@ nanoui is used to open and update nano browser uis */ /datum/nanoui/proc/get_header() var/head_content = "" + + for (var/filename in scripts) + head_content += " " + for (var/filename in stylesheets) - head_content += "" + head_content += " " var/templatel_data[0] for (var/key in templates) @@ -297,7 +298,7 @@ nanoui is used to open and update nano browser uis } else { - alert('receiveUpdateData error: something is not defined!'); + alert('receiveUpdateData ERROR: something is not defined!'); if (typeof NanoUpdate == 'undefined') { alert('NanoUpdate not defined!'); @@ -313,7 +314,7 @@ nanoui is used to open and update nano browser uis