Fix multi-word compound name lookup

This commit is contained in:
Saul Johnson
2017-07-30 18:44:00 +01:00
parent b61dbc994d
commit befed530eb
+2 -2
View File
@@ -11,8 +11,8 @@ $(document).ready ->
invalidCompoundMessage = $ '.row-error'
getCompoundName = ->
encodeURIComponent(compoundTextBox.val()).replace /\s/g, ''
window.getCompoundName = getCompoundName
encodeURIComponent compoundTextBox.val().replace(/\s/g, '')
# URL builder functions for API.
buildUrl = (width, height, foreground, background, name) ->