Skip to content

Commit

Permalink
rerun build
Browse files Browse the repository at this point in the history
  • Loading branch information
DanBuda11 committed Feb 24, 2017
1 parent bbe0437 commit 71ba004
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 31 deletions.
4 changes: 2 additions & 2 deletions public/scripts/bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/scripts/components/AgentThumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default React.createClass({
<div className="thumbInfo">
<ul className="detailsInfo">
<li>{this.props.firstName} {this.props.lastName}</li>
<li>{this.props.phone}</li>
<li className="agentPhone">{this.props.phone}</li>
<li>{this.props.email}</li>
</ul>
</div>
Expand Down
7 changes: 5 additions & 2 deletions public/scripts/components/pages/EditListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ export default React.createClass({
listing: this.state.listings.get(e.target.value)
});
},
formChange(e) {
formChange: function(e) {
this.state.listing.set(e.target.dataset.key, e.target.value);
this.setState({
listing: this.state.listing
});
},
formSubmit(e) {
formSubmit: function(e) {
e.preventDefault();
this.state.listing.save({userId: window.user.id}, {
success: function() {
Expand All @@ -114,6 +114,9 @@ export default React.createClass({
},
clearForm() {
this.state.listing.clear();
const propTextarea = document.querySelector('.propTextarea');
propTextarea.value = '';

},
deleteConfirm() {
this.delOpenModal();
Expand Down
9 changes: 3 additions & 6 deletions public/scripts/components/pages/NewListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ export default React.createClass({
this.setState({photos: Blob});
});
},
formChange(e) {
formChange: function(e) {
this.state.listing.set(e.target.dataset.key, e.target.value);
this.setState({
listing: this.state.listing
});
},
formSubmit(e) {
formSubmit: function(e) {
e.preventDefault();
this.state.listing.save({userId: window.user.id}, {
// need to grab newly created listingId
Expand All @@ -69,15 +69,12 @@ export default React.createClass({
this.setState({photos: []});
}
});
console.log('formSubmit');
this.clearForm();
},
clearForm() {
console.log('clearForm');
this.state.listing.clear();
},
savePhotos(listing) {
console.log('savePhotos running');
savePhotos: function(listing) {
let photoModels = this.state.photos.map((photo, i , array) => {
return {url: photo.url, listingId:listing.id};
});
Expand Down
42 changes: 23 additions & 19 deletions public/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,13 @@ li {
li {
margin: 0.5em 0;
font-size: 1.2em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.agentPhone{
min-height: 1.3rem;
}

.propThumbAddress {
Expand Down Expand Up @@ -820,7 +827,7 @@ li {
.dashboardButtons {
width: 100%;
text-align: center;
padding-bottom: 5em;
padding-bottom: 14em;

.dashboardButton {
width:75%;
Expand All @@ -839,7 +846,7 @@ li {
// Responsive design style changes start here
@media (min-width: 350px) {
.dashboardButtons {
padding-bottom: 16em;
padding-bottom: 14em;
}

.homeContainer {
Expand All @@ -857,7 +864,7 @@ li {
}
}

@media (min-width: 450px) {
@media (min-width: 480px) {
.propEntryForm {

form {
Expand Down Expand Up @@ -972,22 +979,6 @@ li {
}
}

@media (min-width: 600px) {

.propThumb {
width: 29%;
}

.bigPhotoBox {

.bigPhoto {
width: 30%;
margin: 1.66%;
float: left;
}
}
}

@media (min-width: 670px) {

.navBar {
Expand All @@ -1013,6 +1004,19 @@ li {
}
}
}

.propThumb {
width: 29%;
}

.bigPhotoBox {

.bigPhoto {
width: 30%;
margin: 1.66%;
float: left;
}
}
}

// Responsive design styles changes end here
Expand Down
2 changes: 1 addition & 1 deletion public/styles/main.scss.min.css

Large diffs are not rendered by default.

0 comments on commit 71ba004

Please sign in to comment.