diff options
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/features/repo-issue.ts | 31 | ||||
-rw-r--r-- | web_src/js/index.ts | 2 |
2 files changed, 0 insertions, 33 deletions
diff --git a/web_src/js/features/repo-issue.ts b/web_src/js/features/repo-issue.ts index a59e4319ab..477edbeb5f 100644 --- a/web_src/js/features/repo-issue.ts +++ b/web_src/js/features/repo-issue.ts @@ -11,37 +11,6 @@ import {initRepoIssueSidebar} from './repo-issue-sidebar.ts'; const {appSubUrl} = window.config; -export function initRepoIssueTimeTracking() { - $(document).on('click', '.issue-add-time', () => { - $('.issue-start-time-modal').modal({ - duration: 200, - onApprove() { - $('#add_time_manual_form').trigger('submit'); - }, - }).modal('show'); - $('.issue-start-time-modal input').on('keydown', (e) => { - if (e.key === 'Enter') { - $('#add_time_manual_form').trigger('submit'); - } - }); - }); - $(document).on('click', '.issue-start-time, .issue-stop-time', () => { - $('#toggle_stopwatch_form').trigger('submit'); - }); - $(document).on('click', '.issue-cancel-time', () => { - $('#cancel_stopwatch_form').trigger('submit'); - }); - $(document).on('click', 'button.issue-delete-time', function () { - const sel = `.issue-delete-time-modal[data-id="${$(this).data('id')}"]`; - $(sel).modal({ - duration: 200, - onApprove() { - $(`${sel} form`).trigger('submit'); - }, - }).modal('show'); - }); -} - /** * @param {HTMLElement} item */ diff --git a/web_src/js/index.ts b/web_src/js/index.ts index 48c4b76cee..f93c3495af 100644 --- a/web_src/js/index.ts +++ b/web_src/js/index.ts @@ -26,7 +26,6 @@ import {initPdfViewer} from './render/pdf.ts'; import {initUserAuthOauth2, initUserCheckAppUrl} from './features/user-auth.ts'; import { initRepoIssueReferenceRepositorySearch, - initRepoIssueTimeTracking, initRepoIssueWipTitle, initRepoPullRequestMergeInstruction, initRepoPullRequestAllowMaintainerEdit, @@ -184,7 +183,6 @@ onDomReady(() => { initRepoIssueList, initRepoIssueSidebarList, initRepoIssueReferenceRepositorySearch, - initRepoIssueTimeTracking, initRepoIssueWipTitle, initRepoMigration, initRepoMigrationStatusChecker, |