Browse Source

Fix for showing Google Static Maps closes #9

pull/23/merge
Zach Wise 13 years ago
parent
commit
281c1fbeab
  1. 8
      locale/de.js
  2. 8
      locale/en.js
  3. 8
      locale/es.js
  4. 8
      locale/fr.js
  5. 8
      locale/it.js
  6. 8
      locale/kr.js
  7. 8
      locale/nl.js
  8. 8
      locale/pt-br.js
  9. 8
      locale/zh-ch.js
  10. 8
      locale/zh-tw.js
  11. 4
      source/js/VMM.MediaType.js
  12. 8
      timeline-min.js
  13. 4
      timeline.js

8
locale/de.js

File diff suppressed because one or more lines are too long

8
locale/en.js

File diff suppressed because one or more lines are too long

8
locale/es.js

File diff suppressed because one or more lines are too long

8
locale/fr.js

File diff suppressed because one or more lines are too long

8
locale/it.js

File diff suppressed because one or more lines are too long

8
locale/kr.js

File diff suppressed because one or more lines are too long

8
locale/nl.js

File diff suppressed because one or more lines are too long

8
locale/pt-br.js

File diff suppressed because one or more lines are too long

8
locale/zh-ch.js

File diff suppressed because one or more lines are too long

8
locale/zh-tw.js

File diff suppressed because one or more lines are too long

4
source/js/VMM.MediaType.js

@ -53,7 +53,7 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaType == 'undefined') {
media.type = "twitter";
media.id = twitter_id;
success = true;
} else if (d.match("maps.google")) {
} else if (d.match("maps.google") && !d.match("staticmap")) {
//maps.google.com
media.type = "google-map";
media.id = d.split(/src=['|"][^'|"]*?['|"]/gi);
@ -68,7 +68,7 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaType == 'undefined') {
//media.id = media.id.split("/")[1];
//trace("FLICKR " + media.id);
success = true;
} else if (d.match(/jpg|jpeg|png|gif/i)) {
} else if (d.match(/jpg|jpeg|png|gif/i) || d.match("staticmap")) {
media.type = "image";
media.id = d;
success = true;

8
timeline-min.js vendored

File diff suppressed because one or more lines are too long

4
timeline.js

@ -1977,7 +1977,7 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaType == 'undefined') {
media.type = "twitter";
media.id = twitter_id;
success = true;
} else if (d.match("maps.google")) {
} else if (d.match("maps.google") && !d.match("staticmap")) {
//maps.google.com
media.type = "google-map";
media.id = d.split(/src=['|"][^'|"]*?['|"]/gi);
@ -1992,7 +1992,7 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaType == 'undefined') {
//media.id = media.id.split("/")[1];
//trace("FLICKR " + media.id);
success = true;
} else if (d.match(/jpg|jpeg|png|gif/i)) {
} else if (d.match(/jpg|jpeg|png|gif/i) || d.match("staticmap")) {
media.type = "image";
media.id = d;
success = true;

Loading…
Cancel
Save