Skip to content

Commit

Permalink
Merge pull request #3 from obiPlabon/master
Browse files Browse the repository at this point in the history
Close button fixed
  • Loading branch information
hasinhayder committed Jun 16, 2015
2 parents a4ba9f3 + 3125d42 commit b40f3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/script.js
Expand Up @@ -16,7 +16,7 @@

$('#fields').on('click', '.remove', function (e) {
e.preventDefault();
if (confirm("Are you sure to delete?")) {
if ($(".form-element").length > 1 && confirm("Are you sure to delete?")) {
$(this).parents(".form-element").remove();
$("#fields .form-element:last").find(".add-more").show();
}
Expand Down

0 comments on commit b40f3e3

Please sign in to comment.