Sha256: ba062d729a438739f357cf0d7ec4658f976e981e742e132ef55eb69a5ad2fd8b

Contents?: true

Size: 1.05 KB

Versions: 9

Compression:

Stored size: 1.05 KB

Contents

$(function() {
    "use strict";

    // Add treeview translations
    $.translations({
	en: {
	    menu: 'Menu',
	    tree: 'Tree'
	},
	de: {
	    menu: 'MenĂ¼',
	    tree: 'Baumansicht'
	},
	cs: {
	    menu: 'Menu',
	    tree: 'Strom'
	},
	fr: {
	    menu: 'Menu',
	    tree: 'Arbre'
	}
    });

    // 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' }, success: success, error: error, dataType: 'json'});
    }});
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
olelo-0.9.15 plugins/treeview/script/init.js
olelo-0.9.14 plugins/treeview/script/init.js
olelo-0.9.13 plugins/treeview/script/init.js
olelo-0.9.12 plugins/treeview/script/init.js
olelo-0.9.11 plugins/treeview/script/init.js
olelo-0.9.10 plugins/treeview/script/init.js
olelo-0.9.9 plugins/treeview/script/init.js
olelo-0.9.8 plugins/treeview/script/init.js
olelo-0.9.7 plugins/treeview/script/init.js