mirror of
https://github.com/bckelley/avogadrio.git
synced 2026-08-24 02:04:11 -05:00
Set filename according to molecule name if available
This commit is contained in:
@@ -119,6 +119,7 @@ $(document).ready ->
|
||||
url = buildUrl screenWidth, screenHeight, foregroundColor, backgroundColor, currentCompoundName
|
||||
if smilesMode
|
||||
url = buildSmilesUrl screenWidth, screenHeight, foregroundColor, backgroundColor, currentCompoundSmiles
|
||||
downloadButton.attr 'download', if smilesMode then 'smiles_molecule' else currentCompoundName
|
||||
downloadButton.attr 'href', url
|
||||
|
||||
# Updates the displayed preview.
|
||||
|
||||
Reference in New Issue
Block a user