diff --git a/resources/assets/js/scriptStartPage.js b/resources/assets/js/scriptStartPage.js index 5fadd6e2bb3c46ae9926203e17993c176f63a39f..a641ae60c53cb077ff5e841474b3a95cf5b61cfd 100644 --- a/resources/assets/js/scriptStartPage.js +++ b/resources/assets/js/scriptStartPage.js @@ -61,12 +61,12 @@ function setActionListeners () { }); } $('#addFocusBtn').click(() => showFocusCreateDialog('')); - $('#save-focus-btn').click(saveFocus); - $('#delete-focus-btn').click(deleteFocus); + $('.save-focus-btn').click(saveFocus); + $('.delete-focus-btn').click(deleteFocus); // Save Focus on clicking enter while in the focus name input $('#focus-name').keyup(function (event) { if (event.keyCode == 13) { - $('#save-focus-btn').click(); + $('.save-focus-btn').click(); } }); $('#create-focus-modal').on('shown.bs.modal', function () { diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index b2937fa18d6b1f4f52fc1ffa98febacf5a5e5de3..5e24514c5b3ba7c2a018a4db57cd621a0a8490ea 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -154,10 +154,10 @@ <input id="original-id" type="hidden" name="original-id" value=""> </div> <div class="settings-modal-buttons pull-right"> - <button id="delete-focus-btn" class="btn btn-danger"> + <button class="delete-focus-btn btn btn-danger"> @lang('index.focus-creator.delete') </button> - <button id="save-focus-btn" class="btn btn-primary"> + <button class="save-focus-btn btn btn-primary"> @lang('index.focus-creator.save') </button> </div>