Commit ec1a426726529b94e315e0af9c9b64dce6b2a24d
1 parent
16a98387
Exists in
master
and in
4 other branches
fixed double form 'Add new' for issues
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
app/assets/javascripts/issues.js
... | ... | @@ -3,6 +3,7 @@ function switchToNewIssue(form){ |
3 | 3 | $(".project-content").append(form); |
4 | 4 | $('select#issue_assignee_id').chosen(); |
5 | 5 | $("#new_issue_dialog").show("slide", { direction: "right" }, 150); |
6 | + $('.top-tabs .add_new').hide(); | |
6 | 7 | }); |
7 | 8 | } |
8 | 9 | |
... | ... | @@ -11,6 +12,7 @@ function switchToEditIssue(form){ |
11 | 12 | $(".project-content").append(form); |
12 | 13 | $('select#issue_assignee_id').chosen(); |
13 | 14 | $("#edit_issue_dialog").show("slide", { direction: "right" }, 150); |
15 | + $('.top-tabs .add_new').hide(); | |
14 | 16 | }); |
15 | 17 | } |
16 | 18 | |
... | ... | @@ -27,6 +29,7 @@ function backToIssues(){ |
27 | 29 | $("#issues-table-holder").show("slide", { direction: "left" }, 150, function() { |
28 | 30 | $("#edit_issue_dialog").remove(); |
29 | 31 | $("#new_issue_dialog").remove(); |
32 | + $('.top-tabs .add_new').show(); | |
30 | 33 | }); |
31 | 34 | }); |
32 | 35 | } | ... | ... |