From 7edf044a440d9a7f60c691811acedfc6a20ecbfe Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 28 Feb 2013 17:31:23 +0100 Subject: [PATCH] Removed old navigation code https://fedorahosted.org/freeipa/ticket/3236 --- install/ui/index.html | 1 - install/ui/src/freeipa/app.js | 2 - install/ui/src/freeipa/navigation.js | 460 --------------------------- install/ui/src/freeipa/webui.js | 136 -------- install/ui/src/libs/Makefile.am | 1 - install/ui/src/libs/jquery.ba-bbq.js | 18 -- 6 files changed, 618 deletions(-) delete mode 100644 install/ui/src/freeipa/navigation.js delete mode 100644 install/ui/src/freeipa/webui.js delete mode 100644 install/ui/src/libs/jquery.ba-bbq.js diff --git a/install/ui/index.html b/install/ui/index.html index 0523df4d1..75ff82997 100644 --- a/install/ui/index.html +++ b/install/ui/index.html @@ -16,7 +16,6 @@ - diff --git a/install/ui/src/freeipa/app.js b/install/ui/src/freeipa/app.js index 88c8c2bab..361d2371e 100644 --- a/install/ui/src/freeipa/app.js +++ b/install/ui/src/freeipa/app.js @@ -30,8 +30,6 @@ define([ 'exports', // for circullar deps './ipa', './jquery', - './navigation', - './webui', //only entities './aci', './automember', diff --git a/install/ui/src/freeipa/navigation.js b/install/ui/src/freeipa/navigation.js deleted file mode 100644 index 910fb79e2..000000000 --- a/install/ui/src/freeipa/navigation.js +++ /dev/null @@ -1,460 +0,0 @@ -/*jsl:import ipa.js */ - -/* Authors: - * Pavel Zuna - * Endi S. Dewata - * - * Copyright (C) 2010 Red Hat - * see file 'COPYING' for use and warranty information - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . -*/ - -define(['./ipa', './jquery'], function(IPA, $) { - -IPA.navigation = function(spec) { - - spec = spec || {}; - - var that = {}; - - that.name = spec.name; - - that.container = spec.container; - that.root = that.container.attr('id'); - - that.content = spec.content; - that.tab_class = spec.tab_class || 'tabs'; - that.max_depth = spec.max_depth || 3; - - that.tabs = []; - that.tabs_by_name = {}; - - that.path = {}; - - that.set_tabs = function(tabs) { - that.tabs = tabs; - that.tabs_by_name = {}; - - for (var i=0; i', { - name: that.root - }).appendTo(that.container); - - that._create(that.tabs, container, 1); - - var tabs = $('.' + that.tab_class, that.container); - tabs.tabs({ - select: function(event, ui) { - - // get the selected tab - var panel = $(ui.panel); - var name = panel.attr('name'); - var selected_tab = that.get_tab(name); - - // get the tab specified in the URL state - var state = that.get_state(); - var url_tab = that.get_active_tab(state); - - if (url_tab) { - // if they are the same, the selection is triggered by hash change - if (url_tab == selected_tab) { - // use the URL state to update internal state - return that.push_state(state); - - // if the selection is for the ancestor - } else if (that.is_ancestor(url_tab, selected_tab)) { - // let the tab be updated and don't change the state - return true; - } - } - - // selection is triggered by mouse click, update the URL state - return that.show_tab(name); - } - }); - }; - - that._create = function(tabs, container, depth) { - - var parent_name = container.attr('name'); - that.path[parent_name] = tabs[0].name; - - container.addClass(that.tab_class); - container.addClass('tabs'+depth); - - var ul = $('