Skip to content

Instantly share code, notes, and snippets.

@minillinim
Created July 28, 2015 03:58
Show Gist options
  • Save minillinim/93e3d5c14e8bda076292 to your computer and use it in GitHub Desktop.
Save minillinim/93e3d5c14e8bda076292 to your computer and use it in GitHub Desktop.
function _load_components() {
_reset_page()
// do some magic
var links = _get_data(_WLCD_base_uri)["_links"];
$.each(links, function(idx, link) {
if ("self" !== link["rel"]) {
var title = link["title"].toUpperCase();
var iid = add_top_menu_item(_WLCD_block_ref, title, _load_machines);
_WLCD_iid_2_component_uri[iid] = link["uri"];
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment