Permalink
Browse files

added link, improved report view and clered new input form

  • Loading branch information...
1 parent be6f282 commit 28be39db7c6d2c483bbbee8f8fe0d795930c9752 @anton10 anton10 committed Feb 20, 2012
Showing with 18 additions and 14 deletions.
  1. +1 −1 www/index.html
  2. +9 −10 www/resources/interview.css
  3. +8 −3 www/resources/interview.mobile.js
View
@@ -66,7 +66,7 @@
<!-- BEGIN #istance -->
<div class="istance">
- <span class="link">Snow Emergency Italy 2012</span>
+ <a href="http://174.129.246.207/ushahidi-dev/"><span class="link">Snow Emergency Italy 2012</span></a>
<!-- END #istance -->
</div>
@@ -59,6 +59,7 @@ body {
height: 75px;
}
+ .istance a.ui-link{text-decoration:none}
/* Back Button */
.ui-header .ui-btn-left {
left: 0;
@@ -693,16 +694,14 @@ text-shadow: none;
#reportview .interview-item-date div{display:inline;}
#reportview .incident_photo{text-align:center}
#reportview .posted {
- /*background: #e64447;*/
- background: #d72426;
- border-top: 2px solid #f0595e;
- border-bottom: 2px solid #d72426;
- color:white;
- padding:0px 20px;
- border-bottom: 2px solid #70737A;
- border-top: 2px solid #CBCFD9;
- text-align:center;
- font-family: 'BebasNeueRegular';
+ position: absolute;
+ width: 38px;
+ height: 86px;
+ float: right;
+ top: 125px;
+ right: 62px; /* 62px */
+ background: transparent url(images/error-status.png) no-repeat center center;
+ text-indent: -999em;
}
/*####################################################################################################################################
@@ -218,8 +218,10 @@ var interviews_app = {};
$("#reportview div[data-role='content']").append($($(this).children()).clone());
$("#reportview div[data-role='content'] .incident_date:first").remove();
img_data = $("#reportview div[data-role='content'] .incident_photo").text();
- var img_el = $("<img/>");
- img_el.attr('src', img_data);
+ if(img_data!=""){
+ var img_el = $("<img/>");
+ img_el.attr('src', img_data);
+ }
$("#reportview div[data-role='content'] .incident_photo").html(img_el);
$("#reportview div[data-role='content'] .incident_photo").append("<img")
$("#reportview div[data-role='content'] .interview-item-ct").show();
@@ -301,7 +303,10 @@ $(document).bind("mobileinit", function(){
interviews_app.listingHide();
});
- $('#new').live('pageshow', interviews_app.checkFileSupport);
+ $('#new').live('pageshow', function(){
+ $('#new :input').val('');
+ interviews_app.checkFileSupport();
+ });
$("#reportview").live("pagehide",function(){
$("#reportview div[data-role='content']").empty()

0 comments on commit 28be39d

Please sign in to comment.