Commit 3c2eab43 authored by Aria Givi's avatar Aria Givi

id selector zu class selector umgeaendert

parent d354bf99
......@@ -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 () {
......
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment