diff options
| author | Kumar Priyansh <[email protected]> | 2019-06-19 14:59:57 +0530 |
|---|---|---|
| committer | Kumar Priyansh <[email protected]> | 2019-06-19 14:59:57 +0530 |
| commit | 1e6fcc41a8d962b6d87b01bc2f9b767ea8679d0c (patch) | |
| tree | 21541f7be479c26e41e42a104a1243af15230eb6 /src/scripts | |
| parent | a4ee4a4eb7f8211191d8f2bf0215c2d699698c49 (diff) | |
| download | authorr-1e6fcc41a8d962b6d87b01bc2f9b767ea8679d0c.tar.xz authorr-1e6fcc41a8d962b6d87b01bc2f9b767ea8679d0c.zip | |
Made the bed and smashed some bugs, now a little sleep is needed
Diffstat (limited to 'src/scripts')
| -rw-r--r-- | src/scripts/starterWindow.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/scripts/starterWindow.js b/src/scripts/starterWindow.js index 03afd8b..e815381 100644 --- a/src/scripts/starterWindow.js +++ b/src/scripts/starterWindow.js @@ -17,4 +17,21 @@ $(document).ready(function(){ $('.template .templateName span').removeClass('clickedText'); } }); + $('#startSelected').click(function(){ + if ($('.template .templateIcon').hasClass('clicked')){ + var parentId = ($('.clicked').parent().attr('id')); + start(parentId); + } + else { + showError('No Template Selected!', 'No template was selected. Please Select a template to get started!') + } + }) + function showError(heading, message) { + const { remote } = window.require('electron') + const dialog = remote.dialog + dialog.showErrorBox(heading, message); + } + function start(id) { + alert('This would start the ' + id + ' template'); + } })
\ No newline at end of file |
