From bf41afcb077702c02497466f2c25d0eebb106704 Mon Sep 17 00:00:00 2001 From: Matt Claypotch Date: Sun, 7 Nov 2010 22:19:15 -0800 Subject: [PATCH] Bug 609435, disable remove links when only one author is listed --- media/js/zamboni/devhub.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/media/js/zamboni/devhub.js b/media/js/zamboni/devhub.js index 695b31e290..fb2bb4a346 100644 --- a/media/js/zamboni/devhub.js +++ b/media/js/zamboni/devhub.js @@ -439,14 +439,19 @@ function initAuthorFields() { } else { row.remove(); manager.val(author_list.children(".author").length); - renumberAuthors(); } + renumberAuthors(); } }); function renumberAuthors() { author_list.children(".author").each(function(i, el) { $(this).find(".position input").val(i); }); + if ($(".author:visible").length > 1) { + $(".author .remove").show(); + } else { + $(".author .remove").hide(); + } } function addAuthorRow() { var numForms = author_list.children(".author").length;