Browse Source

Fix for possible server restriction issue with XMLHttpRequest domain issues with Google Docs

pull/90/head
Zach Wise 13 years ago
parent
commit
f809d2c7ea
  1. 2
      locale/de.js
  2. 2
      locale/es.js
  3. 2
      locale/fr.js
  4. 2
      locale/is.js
  5. 2
      locale/it.js
  6. 2
      locale/kr.js
  7. 2
      locale/nl.js
  8. 2
      locale/pt-br.js
  9. 2
      locale/zh-ch.js
  10. 2
      locale/zh-tw.js
  11. 10
      source/js/VMM.Timeline.DataObj.js
  12. 10
      timeline.js

2
locale/de.js

File diff suppressed because one or more lines are too long

2
locale/es.js

File diff suppressed because one or more lines are too long

2
locale/fr.js

File diff suppressed because one or more lines are too long

2
locale/is.js

File diff suppressed because one or more lines are too long

2
locale/it.js

File diff suppressed because one or more lines are too long

2
locale/kr.js

File diff suppressed because one or more lines are too long

2
locale/nl.js

File diff suppressed because one or more lines are too long

2
locale/pt-br.js

File diff suppressed because one or more lines are too long

2
locale/zh-ch.js

File diff suppressed because one or more lines are too long

2
locale/zh-tw.js

File diff suppressed because one or more lines are too long

10
source/js/VMM.Timeline.DataObj.js

@ -223,10 +223,18 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.DataObj == 'undefin
// https://docs.google.com/previewtemplate?id=0AppSVxABhnltdEhzQjQ4MlpOaldjTmZLclQxQWFTOUE&mode=public
type: "google spreadsheet",
getData: function(raw_data) {
var loc = (window.parent.document.location).toString();
var prefix = "";
if (loc.match("http")) {
prefix = loc;
} else {
prefix = "https://";
}
var _key = VMM.Util.getUrlVars(raw_data)["key"];
var _url = "https://spreadsheets.google.com/feeds/list/" + _key + "/od6/public/values?alt=json";
var _url = prefix + "spreadsheets.google.com/feeds/list/" + _key + "/od6/public/values?alt=json";
VMM.getJSON(_url, VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData);
},

10
timeline.js

@ -6840,10 +6840,18 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.DataObj == 'undefin
// https://docs.google.com/previewtemplate?id=0AppSVxABhnltdEhzQjQ4MlpOaldjTmZLclQxQWFTOUE&mode=public
type: "google spreadsheet",
getData: function(raw_data) {
var loc = (window.parent.document.location).toString();
var prefix = "";
if (loc.match("http")) {
prefix = loc;
} else {
prefix = "https://";
}
var _key = VMM.Util.getUrlVars(raw_data)["key"];
var _url = "https://spreadsheets.google.com/feeds/list/" + _key + "/od6/public/values?alt=json";
var _url = prefix + "spreadsheets.google.com/feeds/list/" + _key + "/od6/public/values?alt=json";
VMM.getJSON(_url, VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData);
},

Loading…
Cancel
Save