http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/c7900364/docs/website/learnmore/catalog/catalog-item.html ---------------------------------------------------------------------- diff --git a/docs/website/learnmore/catalog/catalog-item.html b/docs/website/learnmore/catalog/catalog-item.html index 2eaf96b..8eb333f 100644 --- a/docs/website/learnmore/catalog/catalog-item.html +++ b/docs/website/learnmore/catalog/catalog-item.html @@ -57,15 +57,22 @@ under the License. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="{{site.path.style}}/js/catalog/common.js" type="text/javascript"></script> -<script src="{{site.path.style}}/js/catalog/items.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { - updateItem(); + var items_loaded; $(window).on('hashchange', updateItem); - function updateItem() { + $.getJSON( "{{site.path.style}}/js/catalog/items.json", function( data ) { + items_loaded = data; + updateItem(data); + }); + + function updateItem(items) { var args, catalog_type; + if(!items) { + items = items_loaded; + } args = getArgs(); if(args.length!=2) { alert('bad entity format')
- [10/19] incubator-brooklyn git commit: Improve the SEO for the ca... heneveld
- [15/19] incubator-brooklyn git commit: Catalog build heneveld
- [17/19] incubator-brooklyn git commit: Revert the docs build chan... heneveld
- [05/19] incubator-brooklyn git commit: Catalog items Load an enti... heneveld
- [09/19] incubator-brooklyn git commit: Rename the loading page fo... heneveld
- [02/19] incubator-brooklyn git commit: - Catalog rearrangement so... heneveld
- [03/19] incubator-brooklyn git commit: - Catalog rearrangement so... heneveld
- [13/19] incubator-brooklyn git commit: Load the catalog items as ... heneveld
- [07/19] incubator-brooklyn git commit: Catalog items Load an enti... heneveld
- [08/19] incubator-brooklyn git commit: Remove obsolete page heneveld
- [11/19] incubator-brooklyn git commit: Load the catalog items as ... heneveld
- [06/19] incubator-brooklyn git commit: Catalog items Load an enti... heneveld
- [19/19] incubator-brooklyn git commit: reinstate root index.md in... heneveld
- [14/19] incubator-brooklyn git commit: Load the catalog items as ... heneveld
- [04/19] incubator-brooklyn git commit: - Catalog rearrangement so... heneveld
- [12/19] incubator-brooklyn git commit: Load the catalog items as ... heneveld
- [16/19] incubator-brooklyn git commit: Catalog index page heneveld
- [18/19] incubator-brooklyn git commit: This closes #524 heneveld
