From 6c0fcdfaefd072f8b0ee1d7d8f1ba2a2c1ede8ec Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Thu, 31 Jul 2008 09:44:58 +0000 Subject: [PATCH] ADD avancement dans tool.rb MOD mineurs --- js/betterjs.js | 9 ++++----- js/client.js | 2 +- js/euphorik.js | 8 +++++--- js/fragment.js | 12 ++++++------ js/{ => libs}/jquery.js | 0 js/{ => libs}/jquery.lightbox.js | 0 js/{ => libs}/json2.js | 0 js/{ => libs}/md5.js | 0 8 files changed, 16 insertions(+), 15 deletions(-) rename js/{ => libs}/jquery.js (100%) rename js/{ => libs}/jquery.lightbox.js (100%) rename js/{ => libs}/json2.js (100%) rename js/{ => libs}/md5.js (100%) diff --git a/js/betterjs.js b/js/betterjs.js index d7ceb8e..30ca5ad 100644 --- a/js/betterjs.js +++ b/js/betterjs.js @@ -33,22 +33,21 @@ Array.prototype.each = function(f) { Array.prototype.map = function(f) { for (var i = 0; i < this.length; i++) { - this[i] = f(this[i]) + this[i] = f(this[i]); } }; String.prototype.trim = function() { - return jQuery.trim(this) // anciennement : this.replace(/^\s+|\s+$/g, ""); + return jQuery.trim(this); // anciennement : this.replace(/^\s+|\s+$/g, ""); } String.prototype.ltrim = function() { return this.replace(/^\s+/, ""); -} +}; String.prototype.rtrim = function() { return this.replace(/\s+$/, ""); -} - +}; /** * Voir : http://www.coolpage.com/developer/javascript/Correct%20OOP%20for%20Javascript.html diff --git a/js/client.js b/js/client.js index 9daa0f5..11466a9 100644 --- a/js/client.js +++ b/js/client.js @@ -126,7 +126,7 @@ euphorik.Client.prototype.goPremierePage = function(numConv) */ euphorik.Client.prototype.ajouterConversation = function(racine) { // vérification s'il elle n'existe pas déjà - var existe = false + var existe = false; this.conversations.each(function(i, conv) { if (conv.root === racine) { existe = true; diff --git a/js/euphorik.js b/js/euphorik.js index 5dff115..dfcefd4 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -15,9 +15,11 @@ // // You should have received a copy of the GNU General Public License // along with Euphorik. If not, see . + +/*jslint laxbreak:true */ // tout euphorik est contenu dans cet objet -var euphorik = {} +var euphorik = {}; // le main $(document).ready( @@ -49,7 +51,7 @@ $(document).ready( }, "Non" : function() {} } - ) + ); }); $("#menu .register").click(function(){ pages.afficherPage("register"); }); $("#menu .about").click(function(){ pages.afficherPage("about"); }); @@ -66,4 +68,4 @@ $(document).ready( pages.afficherPage(); } -) +); \ No newline at end of file diff --git a/js/fragment.js b/js/fragment.js index 835c05e..f5a734e 100644 --- a/js/fragment.js +++ b/js/fragment.js @@ -38,25 +38,25 @@ Fragment = function() { Fragment.prototype.setVal = function(name, val) { this.fragments[name] = val; -} +}; Fragment.prototype.getVal = function(name) { return this.fragments[name]; -} +}; Fragment.prototype.delVal = function(name) { delete this.fragments[name]; -} +}; Fragment.prototype.eraseAllVal = function() { this.fragments = []; -} +}; Fragment.prototype.each = function(fun) { objectEach(this.fragments, function(name, val) { fun(name, val); }); -} +}; Fragment.prototype.write = function() { var fragmentsStr = ""; @@ -66,4 +66,4 @@ Fragment.prototype.write = function() { first = false; }); window.location.hash = fragmentsStr; -} +}; \ No newline at end of file diff --git a/js/jquery.js b/js/libs/jquery.js similarity index 100% rename from js/jquery.js rename to js/libs/jquery.js diff --git a/js/jquery.lightbox.js b/js/libs/jquery.lightbox.js similarity index 100% rename from js/jquery.lightbox.js rename to js/libs/jquery.lightbox.js diff --git a/js/json2.js b/js/libs/json2.js similarity index 100% rename from js/json2.js rename to js/libs/json2.js diff --git a/js/md5.js b/js/libs/md5.js similarity index 100% rename from js/md5.js rename to js/libs/md5.js -- 2.43.0