var thisSlider = this;
this.filmBar = filmBar;
var film = filmBar.firstChild;
- if (film.nodeType == 3)
+ if (film.nodeType === 3)
film = film.nextSibling;
this.film = film;
this.slider = slider;
var slide = null;
if (previous) {
slide = this.selectedSlide.parentNode.previousSibling;
- if (slide && slide.nodeType==3)
+ if (slide && slide.nodeType===3)
slide = slide.previousSibling;
}
else {
slide = this.selectedSlide.parentNode.nextSibling;
- if (slide && slide.nodeType==3)
+ if (slide && slide.nodeType===3)
slide = slide.nextSibling;
}
if (target.tagName != 'A')
return;
else {
- if (this.viewMode == 'full') {
+ if (this.viewMode === 'full') {
this.mosaique.unload();
this.mosaique = null;
this.viewMode = 'medium';
var toggleSelectionBtn = this.buttons['toggle_selection'];
var toggleSelectionLink = toggleSelectionBtn.parentNode;
- this.selectedSlideInSelection = (target.className=='selected');
+ this.selectedSlideInSelection = (target.className==='selected');
if (this.selectedSlideInSelection) {
toggleSelectionBtn.src = portal_url() + '/unselect_flag_btn.gif';
toggleSelectionBtn.alt = toggleSelectionLink.title = 'Retirer de la sélection';
break;
case 4 :
hideProgressImage();
- if (req.status == '200')
+ if (req.status === '200')
thisFS.populateViewer(req);
else
//window.location.href = target.href;
for (i in classes) {
name = classes[i];
- if (name == 'displayed')
+ if (name === 'displayed')
continue;
else
newClasses.push(name);
FilmSlider.prototype.toolbarClickHandler = function(evt) {
var target = getTargetedObject(evt);
- if(target.tagName == 'IMG' && target.getAttribute('name')){
+ if(target.tagName === 'IMG' && target.getAttribute('name')){
switch(target.getAttribute('name')) {
case 'previous' :
disableDefault(evt);
disableDefault(evt);
disablePropagation(evt);
target.parentNode.blur();
- if (this.viewMode == 'full') {
+ if (this.viewMode === 'full') {
this.mosaique.unload();
this.mosaique = null;
this.viewMode = 'medium';
disableDefault(evt);
disablePropagation(evt);
target.blur();
- if (this.viewMode == 'full') {
+ if (this.viewMode === 'full') {
this.mosaique.unload();
this.mosaique = null;
this.viewMode = 'medium';
FilmSlider.prototype.keyPressHandler = function(evt) {
var target = getTargetedObject(evt);
- if (target.tagName == 'INPUT' || target.tagName== 'TEXTAREA')
+ if (target.tagName === 'INPUT' || target.tagName=== 'TEXTAREA')
return;
var evt = getEventObject(evt);
var charPress = String.fromCharCode((evt.keyCode) ? evt.keyCode : evt.which);
link.href = element.getAttribute('backToContextUrl');
link = this.buttons['show_buyable'].parentNode;
var buyable = element.getAttribute('buyable');
- if(buyable == 'True')
+ if(buyable === 'True')
link.className = null;
- else if(buyable == 'False')
+ else if(buyable === 'False')
link.className = 'hidden';
this.image.alt = element.getAttribute('alt');
this.updateBreadcrumbs(element.getAttribute('lastBcUrl'),
FilmSlider.prototype.slideShowNext = function() {
var nextSlide = this.slideShowSlide.parentNode.nextSibling;
- if (nextSlide && nextSlide.nodeType==3)
+ if (nextSlide && nextSlide.nodeType===3)
nextSlide = nextSlide.nextSibling;
if (nextSlide) {
else {
var row = this.slideShowSlide.parentNode.parentNode;
var first = row.firstChild;
- if (first.nodeType==3)
+ if (first.nodeType===3)
first = first.nextSibling;
this.pendingSlideShowSlide = first.getElementsByTagName('a')[0];
return this.pendingSlideShowSlide.href;
FilmSlider.prototype.slideShowPrevious = function() {
var previousSlide = this.slideShowSlide.parentNode.previousSibling;
- if (previousSlide && previousSlide.nodeType==3)
+ if (previousSlide && previousSlide.nodeType===3)
previousSlide = previousSlide.previousSibling;
if (previousSlide) {
else {
var row = this.slideShowSlide.parentNode.parentNode;
var last = row.lastChild;
- if (last.nodeType==3)
+ if (last.nodeType===3)
last = last.previousSibling;
this.pendingSlideShowSlide = last.getElementsByTagName('a')[0];
return this.pendingSlideShowSlide.href;