Minor stuff

This commit is contained in:
Edin Dazdarevic
2017-04-08 02:32:48 +02:00
parent 027323919e
commit b540f50e15
4 changed files with 9 additions and 13 deletions

View File

@@ -183,8 +183,6 @@
price["$lte"] = parseFloat(maxPrice);
}
price["$ne"] = "Po dogovoru";
query = Object.assign(query, {
price: price
});

View File

@@ -1,5 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import {findDOMNode} from 'react-dom';
import {formatPrice} from '../lib/helpers';
import {loadListing} from '../lib/api';
@@ -98,12 +98,12 @@ export default class Listings extends React.Component {
}
attachScrollListener () {
const listings = ReactDOM.findDOMNode(this.refs.listings);
const listings = findDOMNode(this.refs.listings);
listings.parentNode.addEventListener('scroll', this.handleScroll);
}
removeScrollListener () {
const listings = ReactDOM.findDOMNode(this.refs.listings);
const listings = findDOMNode(this.refs.listings);
listings.parentNode.removeEventListener('scroll', this.handleScroll);
}

8
web/dist/index.html vendored
View File

@@ -15,10 +15,10 @@
</div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBBghY4-1wa7jETxDbyDdcGL731ZtOxpkA&libraries=places">
</script>
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<!--<script-->
<!--src="https://code.jquery.com/jquery-3.1.1.min.js"-->
<!--integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="-->
<!--crossorigin="anonymous"></script>-->
<script type="text/javascript" src="app.bundle.js"></script>
</div>
</body>

View File

@@ -1,8 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import {render} from 'react-dom';
import Main from './components/Main';
const state = {
};
ReactDOM.render(<Main />, document.getElementById('root'));
render(<Main />, document.getElementById('root'));