Skip to content

Commit

Permalink
RootViz now respects read-only attribute. closes #140
Browse files Browse the repository at this point in the history
  • Loading branch information
finger563 committed Jun 9, 2017
1 parent 3425eba commit 2fc8fc6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/visualizers/widgets/RootViz/RootVizWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,14 @@ define([
self._client.setAttribute(gmeId, attribute, text);
}

// editable authors area
this.$el.find('#'+panelId+'-authors').on('dblclick', divClicked);
// editable brief area
this.$el.find('#'+panelId+'-brief').on('dblclick', divClicked);
// editable detailed area
this.$el.find('#'+panelId+'-detailed').on('dblclick', divClicked);
if (!this._client.isProjectReadOnly()) {
// editable authors area
this.$el.find('#'+panelId+'-authors').on('dblclick', divClicked);
// editable brief area
this.$el.find('#'+panelId+'-brief').on('dblclick', divClicked);
// editable detailed area
this.$el.find('#'+panelId+'-detailed').on('dblclick', divClicked);
}

svg = column.find('svg');
svg.css('height', '120px');
Expand Down

0 comments on commit 2fc8fc6

Please sign in to comment.