Bug 1119485 - Link clicker UI no longer resets to the stat conversation view after giving feedback. r=nperriault

This commit is contained in:
Mark Banner 2015-01-09 09:07:46 +00:00
Родитель 439ead04fd
Коммит e1a12512a0
2 изменённых файлов: 14 добавлений и 12 удалений

Просмотреть файл

@ -182,6 +182,13 @@ loop.shared.views.FeedbackView = (function(l10n) {
componentDidMount: function() {
this._timer = setInterval(function() {
if (this.state.countdown == 1) {
clearInterval(this._timer);
if (this.props.onAfterFeedbackReceived) {
this.props.onAfterFeedbackReceived();
}
return;
}
this.setState({countdown: this.state.countdown - 1});
}.bind(this), 1000);
},
@ -193,12 +200,6 @@ loop.shared.views.FeedbackView = (function(l10n) {
},
render: function() {
if (this.state.countdown < 1) {
clearInterval(this._timer);
if (this.props.onAfterFeedbackReceived) {
this.props.onAfterFeedbackReceived();
}
}
return (
React.createElement(FeedbackLayout, {title: l10n.get("feedback_thank_you_heading")},
React.createElement("p", {className: "info thank-you"},

Просмотреть файл

@ -182,6 +182,13 @@ loop.shared.views.FeedbackView = (function(l10n) {
componentDidMount: function() {
this._timer = setInterval(function() {
if (this.state.countdown == 1) {
clearInterval(this._timer);
if (this.props.onAfterFeedbackReceived) {
this.props.onAfterFeedbackReceived();
}
return;
}
this.setState({countdown: this.state.countdown - 1});
}.bind(this), 1000);
},
@ -193,12 +200,6 @@ loop.shared.views.FeedbackView = (function(l10n) {
},
render: function() {
if (this.state.countdown < 1) {
clearInterval(this._timer);
if (this.props.onAfterFeedbackReceived) {
this.props.onAfterFeedbackReceived();
}
}
return (
<FeedbackLayout title={l10n.get("feedback_thank_you_heading")}>
<p className="info thank-you">{