projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4f04a57
)
jslint
author
Benoît Pin
<benoit.pin@gmail.com>
Mon, 7 Apr 2014 08:37:12 +0000
(10:37 +0200)
committer
Benoît Pin
<benoit.pin@gmail.com>
Mon, 7 Apr 2014 08:37:12 +0000
(10:37 +0200)
skins/photo_film_viewer.js
patch
|
blob
|
history
diff --git
a/skins/photo_film_viewer.js
b/skins/photo_film_viewer.js
index
efda660
..
a1ec07d
100644
(file)
--- a/
skins/photo_film_viewer.js
+++ b/
skins/photo_film_viewer.js
@@
-333,7
+333,7
@@
FilmSlider.prototype.thumbnailClickHandler = function(evt) {
this.cartSlide.style.visibility='hidden';
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'
if (metadataButton) {
var metadataEditLink = metadataButton.parentNode;
metadataEditLink.href = canonicalImgUrl + '/photo_edit_form'
@@
-559,7
+559,7
@@
FilmSlider.prototype.keyPressHandler = function(evt) {
switch(charPress) {
case 'f':
case 'F':
switch(charPress) {
case 'f':
case 'F':
- raiseMouseEvent(this.buttons
['full_screen']
, 'click');
+ raiseMouseEvent(this.buttons
.full_screen
, 'click');
break;
}
};
break;
}
};
@@
-574,9
+574,9
@@
FilmSlider.prototype.populateViewer = function(req) {
if (dest) { dest.innerHTML = element.firstChild.nodeValue; }
break;
case 'imageattributes' :
if (dest) { dest.innerHTML = element.firstChild.nodeValue; }
break;
case 'imageattributes' :
- var link = this.buttons
['back_to_portfolio']
.parentNode;
+ var link = this.buttons
.back_to_portfolio
.parentNode;
link.href = element.getAttribute('backToContextUrl');
link.href = element.getAttribute('backToContextUrl');
- link = this.buttons
['show_buyable']
.parentNode;
+ link = this.buttons
.show_buyable
.parentNode;
var buyable = element.getAttribute('buyable');
if(buyable === 'True') { link.className = null; }
else if(buyable === 'False') { link.className = 'hidden'; }
var buyable = element.getAttribute('buyable');
if(buyable === 'True') { link.className = null; }
else if(buyable === 'False') { link.className = 'hidden'; }