summaryrefslogtreecommitdiff
path: root/public_html
diff options
context:
space:
mode:
Diffstat (limited to 'public_html')
-rw-r--r--public_html/js/kolab_admin.js2
-rw-r--r--public_html/skins/default/ui.js13
2 files changed, 15 insertions, 0 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index 24dea51..bb6ddc3 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -332,6 +332,8 @@ function kolab_admin()
// if we get javascript code from server -> execute it
if (response.exec)
eval(response.exec);
+
+ this.trigger_event('http-response', response);
};
// handle HTTP request errors
diff --git a/public_html/skins/default/ui.js b/public_html/skins/default/ui.js
index 3e90153..7c598e6 100644
--- a/public_html/skins/default/ui.js
+++ b/public_html/skins/default/ui.js
@@ -131,7 +131,20 @@ function form_load(id)
init_tabs(id);
}
+// UI resize handler
+function ui_resize()
+{
+ var h = $('#content').height();
+ // resize UI elements
+ if (h > 100) {
+ $('#taskcontent').height(h - 22);
+ }
+}
+
+
/**
* UI Initialization
*/
kadm.add_event_listener('form-load', form_load);
+kadm.add_event_listener('http-response', ui_resize);
+//$(window).resize(function() { ui_resize(); });