summaryrefslogtreecommitdiffstats
path: root/install/ui/webui.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-06-01 12:14:53 -0400
committerAdam Young <ayoung@redhat.com>2011-06-02 14:28:24 -0400
commit7486a332211ed13318c0a689657cb4ff7e7d25a3 (patch)
tree8a6615df0fcd165cede3f7674be407a30516d35e /install/ui/webui.js
parent585083c1d7a0069579d45b17adb39ad8f522c3f6 (diff)
downloadfreeipa-7486a332211ed13318c0a689657cb4ff7e7d25a3.tar.gz
freeipa-7486a332211ed13318c0a689657cb4ff7e7d25a3.tar.xz
freeipa-7486a332211ed13318c0a689657cb4ff7e7d25a3.zip
scrollable content areas
Turn off the side scroll bars for pages. Resizes the table when the browser resizes For stables, the rows scroll, but not the header. For details, the content area scrolls. Reserves 400 picesl for the header/ footer. Resize is only done on reload
Diffstat (limited to 'install/ui/webui.js')
-rw-r--r--install/ui/webui.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/install/ui/webui.js b/install/ui/webui.js
index 4f27272f8..0ca6b703a 100644
--- a/install/ui/webui.js
+++ b/install/ui/webui.js
@@ -109,6 +109,8 @@ IPA.self_serv_navigation = function(spec) {
/* main (document onready event handler) */
$(function() {
+
+
/* main loop (hashchange event handler) */
function window_hashchange(evt){
IPA.nav.update();
@@ -151,6 +153,17 @@ $(function() {
IPA.nav.update();
$('#login_header').html(IPA.messages.login.header);
+
+ function resizeFacet(){
+ var entity = IPA.current_entity;
+ if (entity){
+ var facet_name = IPA.current_facet(entity);
+ var facet = entity.get_facet(facet_name);
+ if (!facet) return;
+ facet.resize();
+ }
+ }
+ jQuery.event.add(window, "resize", resizeFacet);
}
@@ -161,4 +174,5 @@ $(function() {
}
IPA.init(null, null, init_on_win, init_on_error);
+
});