Edition via drag & drop des items

This commit is contained in:
2015-09-11 16:25:45 +02:00
parent 06c809a114
commit 1136b693fd
26 changed files with 665 additions and 67 deletions

View File

@ -11,7 +11,7 @@ module.exports = React.createClass({
mixins: [LazyLoad],
getInitialState: function() {
return { icon: DEFAULT_ICON, currentTheme: undefined };
return { icon: DEFAULT_ICON, currentTheme: '' };
},
onInViewport: function() {
@ -23,7 +23,7 @@ module.exports = React.createClass({
var currentTheme = this.state.currentTheme;
var newTheme = this.props.theme;
if( !this.isInViewport() || newTheme === currentTheme ) return;
if( !this.isInViewport() || newTheme === currentTheme ) return;
this.setState({ icon: LOADING_ICON, currentTheme: newTheme });