From 9abc671546ab05c5e77f2853c3de2d19b02c548f Mon Sep 17 00:00:00 2001 From: Jochen Wierum Date: Tue, 23 Aug 2011 18:52:23 +0200 Subject: Got mobile view working on Opera Mobile, Safari and Android --- lib/iui/iui.css | 8 +++++--- lib/iui/iui.js | 7 ++++++- mobile/functions.php | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/iui/iui.css b/lib/iui/iui.css index 1b2c58433..b72b2dc6b 100644 --- a/lib/iui/iui.css +++ b/lib/iui/iui.css @@ -240,7 +240,8 @@ body > .dialog { color: #999999; } -input:not(input[type|=radio]):not(input[type|=checkbox]) { +/*input:not(input[type|=radio]):not(input[type|=checkbox]) {*/ +input[type|=text], input[type|=password] { box-sizing: border-box; -webkit-box-sizing: border-box; width: 100%; @@ -284,14 +285,15 @@ fieldset > .row:last-child { border-bottom: none !important; } -.row > input:not(input[type|=radio]):not(input[type|=checkbox]) { +/*.row > input:not(input[type|=radio]):not(input[type|=checkbox]) {*/ +.row > input[type|=text], .row > input[type|=password] { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; margin: 0; border: none; padding: 12px 10px 0 110px; - height: 42px; +/* height: 42px;*/ background: none; } .row > input[type|=radio], .row > input[type|=checkbox] { diff --git a/lib/iui/iui.js b/lib/iui/iui.js index 6b7b16b4e..0937afe05 100644 --- a/lib/iui/iui.js +++ b/lib/iui/iui.js @@ -373,7 +373,12 @@ function updatePage(page, fromPage) backButton.style.display = "inline"; backButton.innerHTML = label; backButton.href = page.getAttribute("myBackHref"); - backButton.target = page.getAttribute("myBackTarget"); + //backButton.target = page.getAttribute("myBackTarget"); + target = page.getAttribute("myBackTarget"); + if (target == null) + backButton.target = ''; + else + backButton.target = target; backButton.setAttribute("backwards", "true"); } else diff --git a/mobile/functions.php b/mobile/functions.php index e84be9342..1063fca18 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -491,7 +491,7 @@ //print "
"; //print ""; - //print ""; + //print ""; //print "
"; // print ""; -- cgit v1.2.3