From dd89c28654c92c0922900409b37c1abcefc56c84 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 28 Apr 2011 19:17:58 -0500 Subject: Moved entity contents outside navigation. Previously the entities and navigation are entangled inside a common DOM structure which limits code reuse. Now they have been moved into separate structures. --- install/ui/navigation.js | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) (limited to 'install/ui/navigation.js') diff --git a/install/ui/navigation.js b/install/ui/navigation.js index 9b8f649d..de42ef2a 100644 --- a/install/ui/navigation.js +++ b/install/ui/navigation.js @@ -28,6 +28,7 @@ IPA.navigation = function(spec) { var that = {}; that.container = spec.container; + that.content = spec.content; that.tab_class = spec.tab_class || 'tabs'; that.tabs = []; @@ -116,7 +117,7 @@ IPA.navigation = function(spec) { tabs.tabs({ select: function(event, ui) { var panel = $(ui.panel); - var name = panel.attr('id'); + var name = panel.attr('name'); return that.show_page(name); } @@ -128,11 +129,13 @@ IPA.navigation = function(spec) { container.addClass(that.tab_class); container.addClass('tabs'+depth); + var parent_id = container.attr('id'); + var ul = $('