diff --git a/public/js/index.js b/public/js/index.js index d63f052a5..92cad8cef 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1824,7 +1824,7 @@ function cancelStopwatch() { } function showAddDependencyModal() { - $('.mini.modal') + $('.add-dependency') .modal({ duration: 200, onApprove: function() { @@ -1833,3 +1833,17 @@ function showAddDependencyModal() { }).modal('show') ; } + +function deleteDependencyModal(id, type) { + $('.remove-dependency') + .modal({ + closable: false, + duration: 200, + onApprove: function() { + $('#removeDependencyID').val(id); + $('#dependencyType').val(type); + $('#removeDependencyForm').submit(); + } + }).modal('show') + ; +} diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index f418cf487..ef1f646ce 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -202,6 +202,9 @@ {{range .BlockedByDependencies}}
+ + + {{if .IsClosed}}
@@ -225,8 +228,11 @@ {{range .BlockingDependencies}}
+ + + {{if .IsClosed}} -
+
{{else}} @@ -255,7 +261,7 @@
-
+ + +