diff --git a/frontend/src/main/web/lib/components/SystemGlossary.jsx b/frontend/src/main/web/lib/components/SystemGlossary.jsx
index 158764b878..fc797639e8 100644
--- a/frontend/src/main/web/lib/components/SystemGlossary.jsx
+++ b/frontend/src/main/web/lib/components/SystemGlossary.jsx
@@ -15,6 +15,8 @@ import StringUtils from '../utils/StringUtils'
var SystemGlossary = React.createClass({
mixins: [PureRenderMixin],
+ filterTimeout: null,
+
_init: function() {
return GlossaryStore.init();
},
@@ -48,11 +50,12 @@ var SystemGlossary = React.createClass({
_handleFilterChange: function(event) {
this.setState({filter: event.target.value});
- if(this.state.filterTimeout !== null) {
- clearTimeout(this.state.filterTimeout);
+
+ if(this.filterTimeout !== null) {
+ clearTimeout(this.filterTimeout);
}
if(!StringUtils.isEmptyOrNull(event.target.value)) {
- this.state.filterTimeout = setTimeout(() => {
+ this.filterTimeout = setTimeout(() => {
Actions.updateFilter(this.state.filter);
}, 500);
}
diff --git a/frontend/src/main/web/lib/components/glossary/ActionCell.jsx b/frontend/src/main/web/lib/components/glossary/ActionCell.jsx
index 16e2e1db9a..c9a89c1192 100644
--- a/frontend/src/main/web/lib/components/glossary/ActionCell.jsx
+++ b/frontend/src/main/web/lib/components/glossary/ActionCell.jsx
@@ -55,16 +55,14 @@ var ActionCell = React.createClass({
},
render: function () {
- var self = this;
-
- if (self.props.contentHash === null || self.state.entry === null) {
+ if (this.props.contentHash === null || this.state.entry === null) {
return ();
} else {
- var isTransModified = self.state.entry.status.isTransModified;
- var canUpdateComment = self.state.entry.status.canUpdateTransComment;
- var isSaving = self.state.entry.status.isSaving;
+ var isTransModified = this.state.entry.status.isTransModified;
+ var canUpdateComment = this.state.entry.status.canUpdateTransComment;
+ var isSaving = this.state.entry.status.isSaving;
- var infoTooltip = {self.props.info};
+ var infoTooltip = {this.props.info};
var info = (
@@ -75,9 +73,9 @@ var ActionCell = React.createClass({
comment = (
+ readOnly={!this.props.canUpdateEntry || !canUpdateComment || isSaving}
+ value={this.state.entry.transTerm.comment}
+ onUpdateCommentCallback={this._onUpdateComment}/>
);
if(isSaving) {
@@ -91,12 +89,12 @@ var ActionCell = React.createClass({
if(isTransModified) {
updateButton = (
-