summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/common.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-07-04 19:07:26 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-07-04 19:07:26 +0000
commit45eae1211831c109ea732b800c70e6dbd76ea17b (patch)
treed59940c043d292cbd73b536ed9cf796ec5839e8d /roundcubemail/program/js/common.js
parent85b58f0dcc557baf087e2130a73233df04e6d5b6 (diff)
- Fix GCC errors and warnings (#1487988)
git-svn-id: https://svn.roundcube.net/trunk@4906 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/common.js')
-rw-r--r--roundcubemail/program/js/common.js26
1 files changed, 11 insertions, 15 deletions
diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js
index 16f2ebfc4..cacf0ff8e 100644
--- a/roundcubemail/program/js/common.js
+++ b/roundcubemail/program/js/common.js
@@ -383,21 +383,17 @@ function rcube_layer(id, attributes)
parent = arg.parent,
obj = document.createElement('DIV');
- with (obj) {
- id = this.name;
- with (style) {
- position = 'absolute';
- visibility = (vis) ? (vis==2) ? 'inherit' : 'visible' : 'hidden';
- left = l+'px';
- top = t+'px';
- if (w)
- width = w.toString().match(/\%$/) ? w : w+'px';
- if (h)
- height = h.toString().match(/\%$/) ? h : h+'px';
- if (z)
- zIndex = z;
- }
- }
+ obj.id = this.name;
+ obj.style.position = 'absolute';
+ obj.style.visibility = (vis) ? (vis==2) ? 'inherit' : 'visible' : 'hidden';
+ obj.style.left = l+'px';
+ obj.style.top = t+'px';
+ if (w)
+ obj.style.width = w.toString().match(/\%$/) ? w : w+'px';
+ if (h)
+ obj.style.height = h.toString().match(/\%$/) ? h : h+'px';
+ if (z)
+ obj.style.zIndex = z;
if (parent)
parent.appendChild(obj);