Browse Source

Escape `.`-character for proper matching of jsonp files thanks to @gunnarlium d051fc17ff

pull/290/merge
Zach Wise 12 years ago
parent
commit
5ecaef74ac
  1. 2
      compiled/js/timeline.js
  2. 2
      source/js/VMM.Timeline.DataObj.js

2
compiled/js/timeline.js

@ -9119,7 +9119,7 @@ if (typeof VMM.Timeline !== 'undefined' && typeof VMM.Timeline.DataObj == 'undef
trace("DATA SOURCE: STORIFY");
VMM.Timeline.DataObj.model.storify.getData(raw_data);
//http://api.storify.com/v1/stories/number10gov/g8-and-nato-chicago-summit
} else if (raw_data.match(".jsonp")) {
} else if (raw_data.match("\.jsonp")) {
trace("DATA SOURCE: JSONP");
LoadLib.js(raw_data, VMM.Timeline.DataObj.onJSONPLoaded);
} else {

2
source/js/VMM.Timeline.DataObj.js

@ -22,7 +22,7 @@ if (typeof VMM.Timeline !== 'undefined' && typeof VMM.Timeline.DataObj == 'undef
trace("DATA SOURCE: STORIFY");
VMM.Timeline.DataObj.model.storify.getData(raw_data);
//http://api.storify.com/v1/stories/number10gov/g8-and-nato-chicago-summit
} else if (raw_data.match(".jsonp")) {
} else if (raw_data.match("\.jsonp")) {
trace("DATA SOURCE: JSONP");
LoadLib.js(raw_data, VMM.Timeline.DataObj.onJSONPLoaded);
} else {

Loading…
Cancel
Save