Skip to content

Commit

Permalink
#2 remove workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
p-a-s-c-a-l committed Mar 6, 2019
1 parent 9531846 commit e20403a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/scripts/connectors/nodeConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@ window.Drupal.behaviors.myBehavior = {
// to get node and group id!
var groupId = drupalSettings.csisHelpers.entityinfo.study;

// FIXME: this does not work if the iframe is embedded in a separate node that is then referenced
// from the node containg the actual data!
var nodeId = drupalSettings.csisHelpers.entityinfo.step;

// ugly workaround parsing the node id from URL study/$1/step/$2
nodeId = window.location.pathname.split('/')[4];

console.log('groupId = ' + groupId + ', nodeId = ' + nodeId);
var connectCount = 0;
// for some unknown the reason angular directive controler of the embedded child iframe
Expand Down

0 comments on commit e20403a

Please sign in to comment.