diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-05-27 09:18:22 (GMT) |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-05-27 09:18:22 (GMT) |
commit | e2054aa50bd5ca07b6cc95e045d9178862ca511f (patch) | |
tree | 56307227a7b918c7d89b66cd75d207b1353ecef4 /public_html/skins | |
parent | c706af610ca487dfb6acea0b9147367603d7642d (diff) | |
download | kolab-wap-e2054aa50bd5ca07b6cc95e045d9178862ca511f.tar.gz |
Update domain selector after adding/removing domain (Bug #1761)
Diffstat (limited to 'public_html/skins')
-rw-r--r-- | public_html/skins/default/style.css | 7 | ||||
-rw-r--r-- | public_html/skins/default/ui.js | 14 |
2 files changed, 16 insertions, 5 deletions
diff --git a/public_html/skins/default/style.css b/public_html/skins/default/style.css index fa808c6..6647caa 100644 --- a/public_html/skins/default/style.css +++ b/public_html/skins/default/style.css @@ -151,8 +151,8 @@ td.label { color: #aaa; font-size: 11px; padding-top: 2px; - display: inline-block; - height: 18px; + height: 20px; + line-height: 20px; } #navigation { @@ -257,7 +257,7 @@ td.label { } #topmenu .logout { - background: url(images/buttons.png) -1px -100px no-repeat; + background: url(images/buttons.png) -1px -101px no-repeat; padding-left: 20px; margin-right: 10px; color: white; @@ -604,6 +604,7 @@ span.listelement { padding: 0; margin: 0; height: 18px; + line-height: 18px; overflow: hidden; border-top: 1px solid #d0d0d0; white-space: nowrap; diff --git a/public_html/skins/default/ui.js b/public_html/skins/default/ui.js index 45bfd51..ac56bc7 100644 --- a/public_html/skins/default/ui.js +++ b/public_html/skins/default/ui.js @@ -161,12 +161,22 @@ function ui_resize() function ui_load() { domain_selector(); -} +}; + +// API response handler +function http_response(response) +{ + ui_resize(); + + // update domain selector + if (response.action == 'domain.list') + domain_selector(); +}; /** * UI Initialization */ kadm.add_event_listener('form-load', form_load); -kadm.add_event_listener('http-response', ui_resize); +kadm.add_event_listener('http-response', http_response); //$(window).resize(function() { ui_resize(); }); $(window).load(function() { ui_load(); }); |