From: Benoît Pin Date: Mon, 7 Apr 2014 08:51:20 +0000 (+0200) Subject: jslint terminé. X-Git-Url: https://scm.cri.ensmp.fr/git/Portfolio.git/commitdiff_plain/c41e535e2e805f096dfe6554c0ab760350bb3729?ds=sidebyside jslint terminé. --- diff --git a/skins/photo_film_viewer.js b/skins/photo_film_viewer.js index a1ec07d..c9615fb 100644 --- a/skins/photo_film_viewer.js +++ b/skins/photo_film_viewer.js @@ -1,9 +1,7 @@ /* -* © 2008-2014 Benoît Pin – Centre de recherche en informatique – MINES ParisTech -* http://plinn.org -* Licence Creative Commons http://creativecommons.org/licenses/by-nc/2.0/ -* -* +copyright 2008-2014 Benoit Pin - Centre de recherche en informatique - MINES ParisTech +http://plinn.org +Licence Creative Commons http://creativecommons.org/licenses/by-nc/2.0/ */ var FilmSlider; @@ -333,10 +331,10 @@ FilmSlider.prototype.thumbnailClickHandler = function(evt) { this.cartSlide.style.visibility='hidden'; - var metadataButton = this.buttons.edit_metadata + var metadataButton = this.buttons.edit_metadata; if (metadataButton) { var metadataEditLink = metadataButton.parentNode; - metadataEditLink.href = canonicalImgUrl + '/photo_edit_form' + metadataEditLink.href = canonicalImgUrl + '/photo_edit_form'; } @@ -360,11 +358,8 @@ FilmSlider.prototype.thumbnailClickHandler = function(evt) { case 4 : hideProgressImage(); if (req.status === '200') { thisFS.populateViewer(req); } - // else - // //window.location.href = target.href; - // console.error(ajaxUrl); - - }; + break; + } }; req.open("GET", ajaxUrl, true); @@ -376,13 +371,14 @@ FilmSlider.prototype.thumbnailClickHandler = function(evt) { var newClasses = []; var name, i; - for (i in classes) { + for (i=0 ; i