aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--www/css/fms.css9
-rw-r--r--www/js/views/details.js10
-rw-r--r--www/templates/en/details.html2
3 files changed, 19 insertions, 2 deletions
diff --git a/www/css/fms.css b/www/css/fms.css
index 87811b5..f838f9e 100644
--- a/www/css/fms.css
+++ b/www/css/fms.css
@@ -34,7 +34,7 @@
/*width:100%;*/
/*max-width:100%;*/
font-size: 16px;
- border: 1px solid #ccc;
+ border-top: 1px solid #ccc;
padding:0;
margin-left: -15px;
margin-right: -15px;
@@ -45,6 +45,9 @@
border:none;
border-bottom: 1px solid #ccc;
}
+ .gmailstyletest > div.noborder {
+ border:none;
+ }
.ui-field-contain{
padding: 0;
}
@@ -189,3 +192,7 @@
max-width: 85%;
max-height: 45%;
}
+
+ #details-page {
+ background: white !important;
+ }
diff --git a/www/js/views/details.js b/www/js/views/details.js
index bd9f921..9352ae0 100644
--- a/www/js/views/details.js
+++ b/www/js/views/details.js
@@ -26,6 +26,16 @@
.addClass('noselection');
},
+ afterDisplay: function() {
+ var header = $("div[data-role='header']:visible"),
+ detail = this.$('#form_detail'),
+ top = detail.position().top,
+ viewHeight = $(window).height(),
+ contentHeight = viewHeight - header.outerHeight();
+
+ detail.css('height', contentHeight - top );
+ },
+
onClickButtonPrev: function() {
this.updateCurrentReport();
this.navigate( this.prev );
diff --git a/www/templates/en/details.html b/www/templates/en/details.html
index 81f62e4..78484da 100644
--- a/www/templates/en/details.html
+++ b/www/templates/en/details.html
@@ -13,7 +13,7 @@
<%= categories %>
</div>
- <div>
+ <div class="noborder">
<label for="form_detail">Details</label>
<textarea data-role="none" name="detail" id="form_detail" placeholder="Please fill in details of the problem." required><%= details %></textarea>
</div>