Fix out of order arguments

This commit is contained in:
Saul Johnson
2017-08-05 14:55:14 +01:00
parent 848fcb1e77
commit a3066c2a2a
+3 -3
View File
@@ -17,7 +17,7 @@ $(document).ready ->
smilesTextBox = $ '.comp-smiles'
# Element to use for wallpaper preview.
previewElement = $ 'html'
previewElement = $ 'body'
# Error message elements.
errorRows = $ '.row-error'
@@ -128,7 +128,7 @@ $(document).ready ->
currentCompoundName = getCompoundName()
smilesMode = false
url = buildMoleculeOnlyUrl screenWidth, screenHeight, foregroundColor, currentCompoundName
updatePreview previewElement, backgroundColor, url
updatePreview previewElement, url, backgroundColor
# Refreshes the preview using the SMILES structure text box.
#
@@ -136,7 +136,7 @@ $(document).ready ->
currentCompoundSmiles = getCompoundSmiles()
smilesMode = true
url = buildSmilesMoleculeOnlyUrl screenWidth, screenHeight, foregroundColor, currentCompoundSmiles
updatePreview previewElement, backgroundColor, url
updatePreview previewElement, url, backgroundColor
# Let's initialize the color pickers.