You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2019/02/08 22:52:29 UTC

[allura] 02/03: [#8268] add confirmation before deleting a trove category

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/8268
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 28ef259ca7aa2c345983cf83f7f597582c3df30e
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Fri Feb 8 17:18:06 2019 -0500

    [#8268] add confirmation before deleting a trove category
---
 Allura/allura/templates/trovecategories.html | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Allura/allura/templates/trovecategories.html b/Allura/allura/templates/trovecategories.html
index ff7959c..f3bec8e 100644
--- a/Allura/allura/templates/trovecategories.html
+++ b/Allura/allura/templates/trovecategories.html
@@ -78,3 +78,14 @@
 
   </div>
 {% endblock %}
+
+
+{% block extra_js %}
+<script type="text/javascript">
+$(function() {
+    $("input[value=Remove]").click(function(){
+        return confirm('Are you sure?  Before you remove it, make sure no projects use this category any more.');
+    });
+});
+</script>
+{% endblock %}
\ No newline at end of file