Sha256: ae94ca0566659e473f2345135dc2785ae3e388c0d243b5f3b7448d0cfbc6b331
Contents?: true
Size: 1014 Bytes
Versions: 1
Compression:
Stored size: 1014 Bytes
Contents
$(function() { // Add treeview translations $.translations({ en: { menu: 'Menu', tree: 'Tree' }, de: { menu: 'MenĂ¼', tree: 'Baumansicht' }, cs: { menu: 'Menu', tree: 'Strom' } }); // Start tree view $('#sidebar').wrapInner('<div id="sidebar-menu"/>').prepend('<div id="sidebar-tree" style="display: none"><h1>' + $.t('tree') + '</h1><div id="treeview"/></div>'); $('#menu').prepend('<ul><li class="selected" id="sidebar-tab-menu"><a href="#sidebar-menu">' + $.t('menu') + '</a></li><li id="sidebar-tab-tree"><a href="#sidebar-tree">' + $.t('tree') + '</a></li></ul>'); $('#sidebar-tab-menu, #sidebar-tab-tree').tabWidget({store: 'sidebar-tab'}); $('#treeview').treeView({stateStore: 'treeview-state', cacheStore: 'treeview-cache', root: Olelo.base_path, ajax: function(path, success, error) { $.ajax({url: path, data: { aspect: 'treeview.json' }, success: success, error: error, dataType: 'json'}); }}); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
olelo-0.9.3 | plugins/treeview/script/init.js |