Browse Source

Fix for large Flickr images

The original size could be loaded instead of large, now it should only
use the Large size.
pull/23/merge
Zach Wise 13 years ago
parent
commit
f515888281
  1. 6
      locale/de.js
  2. 6
      locale/en.js
  3. 6
      locale/es.js
  4. 6
      locale/fr.js
  5. 6
      locale/it.js
  6. 6
      locale/kr.js
  7. 6
      locale/nl.js
  8. 6
      locale/pt-br.js
  9. 6
      locale/zh-ch.js
  10. 6
      locale/zh-tw.js
  11. 14
      source/js/VMM.js
  12. 6
      timeline-min.js
  13. 14
      timeline.js

6
locale/de.js

File diff suppressed because one or more lines are too long

6
locale/en.js

File diff suppressed because one or more lines are too long

6
locale/es.js

File diff suppressed because one or more lines are too long

6
locale/fr.js

File diff suppressed because one or more lines are too long

6
locale/it.js

File diff suppressed because one or more lines are too long

6
locale/kr.js

File diff suppressed because one or more lines are too long

6
locale/nl.js

File diff suppressed because one or more lines are too long

6
locale/pt-br.js

File diff suppressed because one or more lines are too long

6
locale/zh-ch.js

File diff suppressed because one or more lines are too long

6
locale/zh-tw.js

File diff suppressed because one or more lines are too long

14
source/js/VMM.js

@ -1975,7 +1975,19 @@ if (typeof VMM == 'undefined') {
var id = "flickr_" + flickr_id; var id = "flickr_" + flickr_id;
var flickr_large_id = id + "_large"; var flickr_large_id = id + "_large";
var flickr_thumb_id = id + "_thumb"; var flickr_thumb_id = id + "_thumb";
var flickr_img_large = d.sizes.size[d.sizes.size.length - 1].source; // FIND LARGE SIZE
var flickr_img_large;
var flickr_large_found = false;
for(var i = 0; i < d.sizes.size.length; i++) {
if (d.sizes.size[i].label == "Large") {
flickr_large_found = true;
flickr_img_large = d.sizes.size[i].source;
}
}
if (!flickr_large_found) {
flickr_img_large = d.sizes.size[d.sizes.size.length - 1].source;
}
var flickr_img_thumb = d.sizes.size[0].source; var flickr_img_thumb = d.sizes.size[0].source;
VMM.Element.attr("#"+flickr_large_id, "src", flickr_img_large); VMM.Element.attr("#"+flickr_large_id, "src", flickr_img_large);
VMM.Element.attr("#"+flickr_thumb_id, "src", flickr_img_thumb); VMM.Element.attr("#"+flickr_thumb_id, "src", flickr_img_thumb);

6
timeline-min.js vendored

File diff suppressed because one or more lines are too long

14
timeline.js

@ -1975,7 +1975,19 @@ if (typeof VMM == 'undefined') {
var id = "flickr_" + flickr_id; var id = "flickr_" + flickr_id;
var flickr_large_id = id + "_large"; var flickr_large_id = id + "_large";
var flickr_thumb_id = id + "_thumb"; var flickr_thumb_id = id + "_thumb";
var flickr_img_large = d.sizes.size[d.sizes.size.length - 1].source; // FIND LARGE SIZE
var flickr_img_large;
var flickr_large_found = false;
for(var i = 0; i < d.sizes.size.length; i++) {
if (d.sizes.size[i].label == "Large") {
flickr_large_found = true;
flickr_img_large = d.sizes.size[i].source;
}
}
if (!flickr_large_found) {
flickr_img_large = d.sizes.size[d.sizes.size.length - 1].source;
}
var flickr_img_thumb = d.sizes.size[0].source; var flickr_img_thumb = d.sizes.size[0].source;
VMM.Element.attr("#"+flickr_large_id, "src", flickr_img_large); VMM.Element.attr("#"+flickr_large_id, "src", flickr_img_large);
VMM.Element.attr("#"+flickr_thumb_id, "src", flickr_img_thumb); VMM.Element.attr("#"+flickr_thumb_id, "src", flickr_img_thumb);

Loading…
Cancel
Save