text: // parsly
  // create meal types
  $(function() {
      $("#create_meal")
          .parsley()
          .on("field:validated", function() {
              var ok = $(".parsley-error").length === 0;
              $(".bs-callout-info").toggleClass("hidden", !ok);
              $(".bs-callout-warning").toggleClass("hidden", ok);
          })
          .on("form:submit", function() {
              return false; // Don't submit form for this demo
          });
  });
  
  // edit_meal
  $(function() {
      $("#edit_meal")
          .parsley()
          .on("field:validated", function() {
              var ok = $(".parsley-error").length === 0;
              $(".bs-callout-info").toggleClass("hidden", !ok);
              $(".bs-callout-warning").toggleClass("hidden", ok);
          })
          .on("form:submit", function() {
              return false; // Don't submit form for this demo
          });
  });
  