Skip to content

Commit

Permalink
add support for custom references from services portal
Browse files Browse the repository at this point in the history
  • Loading branch information
drew committed May 14, 2015
1 parent 85ddf52 commit 0c604c8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions oma-profile/oma.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ define([
, "core/highlight"
, "core/best-practices"
, "core/figures"
, "oma/biblio" // must be included before core/biblio
, "core/biblio"
, "core/webidl-contiguous"
, "core/webidl-oldschool"
Expand Down
27 changes: 27 additions & 0 deletions oma-profile/oma/biblio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// oma/biblio
// This should be removed and references should be integrated with the
// specref database.

define(
[],
function () {
return {
run: function (conf, doc, cb, msg) {
msg.pub("start", "oma/biblio");

$.ajax({
url: "http://oma-services.herokuapp.com/refdb.json",
dataType: "json",
success: function(data) {
conf.localBiblio = data;
},
error: function(xhr, status, error) {
}
});

msg.pub("end", "oma/biblio");
cb();
}
};
}
);

0 comments on commit 0c604c8

Please sign in to comment.