{I" class:ETI"ProcessedAsset;FI"logical_path;TI"adherent/application.js;FI" pathname;TI"T/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/application.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+«˙MUI" length;TivI" digest;TI"%8194a068d005df343afd1bf24f4413d1;FI" source;TI"v// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // the compiled file. // // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD // GO AFTER THE REQUIRES BELOW. // // // // fonction pour transformer une chaine avec virgule en float // la fonction retire les espaces et remplace la virgule par le point dĂ©cimal // avant d'appeler Number, la fonction native de js. function stringToFloat(jcdata) { if (jcdata === undefined) { return 0.0; } var d = String(jcdata).replace(/,/, '.'); d = d.replace(/\s/g, ''); if (isNaN(d)) { return 0.0; } else { return Number(d); } } // fonction permettant de mettre deux dĂ©cimales Ă  un nombre // appelĂ© lorsque l'utilisateur sort d'un champ pour remettre en forme sa saisir // Par exemple 32 devient 32.00 ou 32.5 devient 32.50 function $f_two_decimals() { var number = stringToFloat(this.value); if (isNaN(number)) { this.value = '0.00'; } else { this.value = number.toFixed(2); } } // sĂ©rie de fonction qui prĂ©pare les champs dĂ©bit et crĂ©dit pour la saisie // quand on entre dans un champ qui est Ă  0, on le vide function $f_empty() { if (this.value === '0.00') { this.value = ''; } } jQuery(function () { console.log('dans application js de Adherent'); $('#main-zone').on('focus', '.decimal', $f_empty); //vide le champ s'il est Ă  zero (pour faciliter la saisie) $('#main-zone').on('blur', '.decimal', $f_two_decimals); }); ;TI"dependency_digest;TI"%e3359841a8d27f6ae9c82df03ed2bb3a;FI"required_paths;T[!I"_/home/jcl/.rvm/gems/ruby-2.2.1/gems/jquery-rails-3.1.2/vendor/assets/javascripts/jquery.js;FI"c/home/jcl/.rvm/gems/ruby-2.2.1/gems/jquery-rails-3.1.2/vendor/assets/javascripts/jquery_ujs.js;FI"g/home/jcl/.rvm/gems/ruby-2.2.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/core.js;FI"m/home/jcl/.rvm/gems/ruby-2.2.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/datepicker.js;FI"O/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/affix.js;FI"O/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/alert.js;FI"P/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/button.js;FI"R/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/carousel.js;FI"R/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/collapse.js;FI"R/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/dropdown.js;FI"M/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/tab.js;FI"T/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/transition.js;FI"S/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/scrollspy.js;FI"O/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/modal.js;FI"Q/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/tooltip.js;FI"Q/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/popover.js;FI"S/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap-sprockets.js;FI"^/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/jquery.dataTables.min.js;FI"Q/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/adhesion.js;FI"T/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/allpayments.js;FI"O/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/common.js;FI"O/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/coords.js;FI"V/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/datatableinit.js;FI"T/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/date_picker.js;FI"P/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/members.js;FI"X/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/payments.js.coffee;FI"S/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/reglements.js;FI"T/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/application.js;FI"dependency_paths;T["{I" path;TI"E/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent;F@I"2015-05-09T14:38:03+02:00;T@I"%4c6bcbc1914ddd82f1cfb22030c01225;F{@8I"T/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/application.js;F@I"2015-05-09T14:38:03+02:00;T@I"%d83f36230573b7c69621045cac41b83a;F{@8I"_/home/jcl/.rvm/gems/ruby-2.2.1/gems/jquery-rails-3.1.2/vendor/assets/javascripts/jquery.js;F@I"2015-04-10T07:54:27+02:00;T@I"%458ef72a51720360c37a26e7269333fb;F{@8I"c/home/jcl/.rvm/gems/ruby-2.2.1/gems/jquery-rails-3.1.2/vendor/assets/javascripts/jquery_ujs.js;F@I"2015-04-10T07:54:27+02:00;T@I"%8163409ac89d9587bb33a62f6f74d283;F{@8I"m/home/jcl/.rvm/gems/ruby-2.2.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/datepicker.js;F@I"2015-04-13T07:44:00+02:00;T@I"%1fbdc011847464639a7a60498a9771ae;F{@8I"g/home/jcl/.rvm/gems/ruby-2.2.1/gems/jquery-ui-rails-5.0.3/app/assets/javascripts/jquery-ui/core.js;F@I"2015-04-13T07:44:00+02:00;T@I"%c17d793c34359326fe28ecdf37157d68;F{@8I"S/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap-sprockets.js;F@I"2014-12-27T08:50:34+01:00;T@I"%5e70b06cbcc3c37044179c3e036c5997;F{@8I"O/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/affix.js;F@I"2014-12-27T08:50:34+01:00;T@I"%b621ca5aa4f215f8d230a148604ce887;F{@8I"O/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/alert.js;F@I"2014-12-27T08:50:34+01:00;T@I"%ad59e219bfe4522a7da1b4e9711dd1ff;F{@8I"P/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/button.js;F@I"2014-12-27T08:50:34+01:00;T@I"%98221802dd741ae8d367fb93c7ecc2cd;F{@8I"R/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/carousel.js;F@I"2014-12-27T08:50:34+01:00;T@I"%0ded8d32b735234ea9f7db94d69ab42b;F{@8I"R/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/collapse.js;F@I"2014-12-27T08:50:34+01:00;T@I"%6238aa686d48ac48695cf064f461e421;F{@8I"R/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/dropdown.js;F@I"2014-12-27T08:50:34+01:00;T@I"%a9c5ddc5b06ef95a58ff287b0a8a2283;F{@8I"M/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/tab.js;F@I"2014-12-27T08:50:34+01:00;T@I"%62cc22e2caefe089c571e3ec3dd89523;F{@8I"T/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/transition.js;F@I"2014-12-27T08:50:34+01:00;T@I"%378bf9aea830e8f450c8d2237f9eded8;F{@8I"S/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/scrollspy.js;F@I"2014-12-27T08:50:34+01:00;T@I"%b002a3238388bf62b3a2bd32ae264cb6;F{@8I"O/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/modal.js;F@I"2014-12-27T08:50:34+01:00;T@I"%894cf748c383cc57d6f2c5d7eb05687e;F{@8I"Q/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/tooltip.js;F@I"2014-12-27T08:50:34+01:00;T@I"%3edea1d283d02e36795f29cc90d8654d;F{@8I"Q/home/jcl/rails_project/Adherent/app/assets/javascripts/bootstrap/popover.js;F@I"2014-12-27T08:50:34+01:00;T@I"%75500402f85388fdd1a0e860e211ef9a;F{@8I"^/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/jquery.dataTables.min.js;F@I"2013-08-30T11:28:14+02:00;T@I"%a88bf3f08f11051f3e60ac0e317abc53;F{@8I"Q/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/adhesion.js;F@I"2013-08-19T18:22:20+02:00;T@I"%a8e4924c90abbb588ecbcbaccaea1b27;F{@8I"T/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/allpayments.js;F@I"2013-08-30T12:59:02+02:00;T@I"%6af34f6402019a318ea85bf31f3538df;F{@8I"O/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/common.js;F@I"2015-02-22T18:19:02+01:00;T@I"%e79bb6e0f660b904ef24f34b0259ec6e;F{@8I"O/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/coords.js;F@I"2013-08-19T18:22:20+02:00;T@I"%a8e4924c90abbb588ecbcbaccaea1b27;F{@8I"V/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/datatableinit.js;F@I"2015-05-09T15:40:29+02:00;T@I"%50517afbf84eb401e6a0aadbca41d47c;F{@8I"T/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/date_picker.js;F@I"2013-08-19T18:22:20+02:00;T@I"%e495bd1c7b76dfcb9b331a4ed82eef7a;F{@8I"P/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/members.js;F@I"2015-05-09T14:45:42+02:00;T@I"%dba84dc29d83103e76104e431cccb0ef;F{@8I"X/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/payments.js.coffee;F@I"2015-03-21T11:39:25+01:00;T@I"%5fd91b0bee67ec91e199c845625c550c;F{@8I"S/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/reglements.js;F@I"2013-08-19T18:22:20+02:00;T@I"%a8e4924c90abbb588ecbcbaccaea1b27;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F