{:uriI"�file:///Users/benoit/www/agilidee/dorsale/app/assets/javascripts/dorsale/forms.coffee?type=application/javascript&pipeline=self&id=a4c5454f5f63b3b8619ff7031d22e7b2e4e6787b18e31ba16b56b88af0874c07:ET:load_pathI">/Users/benoit/www/agilidee/dorsale/app/assets/javascripts;F:
filenameI"S/Users/benoit/www/agilidee/dorsale/app/assets/javascripts/dorsale/forms.coffee;T:	nameI"dorsale/forms;T:logical_pathI"dorsale/forms.self.js;T:content_typeI"application/javascript;T:sourceI"a(function() {
  $(function() {
    $("button.reset").click(function() {
      var form;
      form = $(this).parents("form");
      form.find("option").map(function() {
        if (this.value === "") {
          return this.selected = true;
        }
      });
      form.find("input").map(function() {
        if (!this.type.match(/submit|hidden|button/)) {
          return this.value = "";
        }
      });
      form.find("textarea").val("");
      return form.find("select").map(function() {
        if (this.selectize) {
          return this.selectize.clear();
        }
      });
    });
    return $("form").submit(function() {
      var input;
      input = document.createElement("input");
      input.type = "hidden";
      input.name = "back_url";
      input.value = location.href;
      return $(this).append(input);
    });
  });

}).call(this);
;T:
metadata{:dependencieso:Set:
@hash{	I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"afile-digest:///Users/benoit/www/agilidee/dorsale/app/assets/javascripts/dorsale/forms.coffee;TT:
requiredo;;{�:stubbedo;;{�:
linkso;;{�:charsetI"
utf-8;F:digest"%�B�6�&�;�4.���ې�I�y��-�K6e9�:lengthia:integrityI"Xni:///sha-256;iUIS_jbbJqA7uzQuqpqq25CTSaJ5i5Qt5bFLNg5lOaM?ct=application/javascript;T:dependencies_digest"%���J�Ɉ�]2kqA��s!�-�'#sy��!3:idI"Ea4c5454f5f63b3b8619ff7031d22e7b2e4e6787b18e31ba16b56b88af0874c07;F:
mtimel+cThU