fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [17383] more on contrloller: mobilefrontend


From: sigurdne
Subject: [Fmsystem-commits] [17383] more on contrloller: mobilefrontend
Date: Fri, 1 Dec 2017 15:06:41 -0500 (EST)

Revision: 17383
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17383
Author:   sigurdne
Date:     2017-12-01 15:06:40 -0500 (Fri, 01 Dec 2017)
Log Message:
-----------
more on contrloller: mobilefrontend

Modified Paths:
--------------
    trunk/controller/inc/class.uicomponent.inc.php
    trunk/controller/js/controller/check_list.js
    trunk/controller/templates/mobilefrontend/css/base.css

Modified: trunk/controller/inc/class.uicomponent.inc.php
===================================================================
--- trunk/controller/inc/class.uicomponent.inc.php      2017-12-01 16:54:02 UTC 
(rev 17382)
+++ trunk/controller/inc/class.uicomponent.inc.php      2017-12-01 20:06:40 UTC 
(rev 17383)
@@ -1297,7 +1297,7 @@
                                                $row['choose'] = "<input 
id=\"master_component\" type=\"radio\" name=\"master_component\" value = 
\"{$entry['location_id']}_{$entry['component_id']}_{$entry['control_id']}\" >";
                                        }
                                        $row['year'] = $year;
-                                       $row['descr'] = 
"Frekvens<br/>Status<br/>Utførende<br/><br/>Tidsbruk";
+                                       $row['descr'] = 
"Frekvens<br/>Status<br/>Utførende<br/>Tidsbruk";
                                }
                                else if ($choose_master)
                                {

Modified: trunk/controller/js/controller/check_list.js
===================================================================
--- trunk/controller/js/controller/check_list.js        2017-12-01 16:54:02 UTC 
(rev 17382)
+++ trunk/controller/js/controller/check_list.js        2017-12-01 20:06:40 UTC 
(rev 17383)
@@ -83,10 +83,20 @@
        });
 });
 
+function getWidth() {
+  return Math.max(
+    document.body.scrollWidth,
+    document.documentElement.scrollWidth,
+    document.body.offsetWidth,
+    document.documentElement.offsetWidth,
+    document.documentElement.clientWidth
+  );
+}
 this.fileuploader = function ()
 {
        var sUrl = phpGWLink('index.php', multi_upload_parans);
-       TINY.box.show({iframe: sUrl, boxid: 'frameless', width: 750, height: 
450, fixed: false, maskid: 'darkmask', maskopacity: 40, mask: true, animate: 
true,
+       var width = Math.min(Math.floor(getWidth() * 0.95), 750);
+       TINY.box.show({iframe: sUrl, boxid: 'frameless', width: width, height: 
450, fixed: false, maskid: 'darkmask', maskopacity: 40, mask: true, animate: 
true,
                close: true,
                closejs: function ()
                {

Modified: trunk/controller/templates/mobilefrontend/css/base.css
===================================================================
--- trunk/controller/templates/mobilefrontend/css/base.css      2017-12-01 
16:54:02 UTC (rev 17382)
+++ trunk/controller/templates/mobilefrontend/css/base.css      2017-12-01 
20:06:40 UTC (rev 17383)
@@ -67,3 +67,54 @@
 .frm_update_case label {
   display: block;
 }
+
+
+* {
+  box-sizing: border-box;
+}
+html {
+ /* font-family: helvetica;*/
+}
+
+html, body {
+  max-width: 100vw;
+}
+
+table {
+ margin: auto;
+  border-collapse: collapse;
+  overflow-x: auto;
+  display: block;
+  width: fit-content;
+  max-width: 100%;
+  box-shadow: 0 0 1px 1px rgba(0, 0, 0, .1);
+}
+
+td, th {
+  border: solid rgb(200, 200, 200) 1px;
+  padding: .5rem;
+}
+
+th {
+  text-align: left;
+  background-color: rgb(190, 220, 250);
+ /* text-transform: uppercase;*/
+  padding-top: 1rem;
+  padding-bottom: 1rem;
+  border-bottom: rgb(50, 50, 100) solid 2px;
+  border-top: none;
+}
+
+td {
+  white-space: nowrap;
+  border-bottom: none;
+  color: rgb(20, 20, 20);
+}
+
+td:first-of-type, th:first-of-type {
+  border-left: none;
+}
+
+td:last-of-type, th:last-of-type {
+  border-right: none;
+}
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]