aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-commit.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/repo-commit.js')
-rw-r--r--web_src/js/features/repo-commit.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web_src/js/features/repo-commit.js b/web_src/js/features/repo-commit.js
new file mode 100644
index 0000000000..336a37d654
--- /dev/null
+++ b/web_src/js/features/repo-commit.js
@@ -0,0 +1,6 @@
+export function initRepoCommitButton() {
+ $('.commit-button').on('click', function (e) {
+ e.preventDefault();
+ $(this).parent().find('.commit-body').toggle();
+ });
+}