Template.bookCreate.events({
  'click .createBook': function () {
    $("#_idSubmit").val('');
    $("input#bookSubmit").val('');
    $("input#authorSubmit").val('');
    $("input#teaserSubmit").val('');
    $("input#originSubmit").val('');
  },

  'submit form': function (event) {
    var _id = $("#_idSubmit").val(),
    book = $("input#bookSubmit").val(),
    author = $("input#authorSubmit").val(),
    teaser = $("input#teaserSubmit").val(),
    origin = $("input#originSubmit").val();

    event.preventDefault();
    if (!book) {
      throw alert("Il manque un titre !");
    }
    if (!author) {
      throw alert("Il manque un auteur !");
    }

    Books.insert({
      title: book,
      author: author,
      teaser: teaser,
      origin: origin,
      statut: "proposed"
    });

    $('#modalBook').modal('hide');
  }
});

@@ -63,37 +63,8 @@
 ) %7B%0A
-    $(%22#_idSubmit%22).val('');%0A
     
@@ -86,32 +86,32 @@
 bmit%22).val('');%0A
+
     $(%22input#aut
@@ -251,45 +251,8 @@
 ) %7B%0A
-    var _id = $(%22#_idSubmit%22).val(),%0A
     
@@ -281,25 +281,25 @@
 bmit%22).val()
-,
+;
 %0A    author 
@@ -325,25 +325,25 @@
 bmit%22).val()
-,
+;
 %0A    teaser 
@@ -373,17 +373,17 @@
 %22).val()
-,
+;
 %0A    ori

remove unuseful variable for book