Loading public/javascript/app/designs/details/main/Activity.js +3 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ define([ , TemplateInfoHelp , _ActivityBase ) { return declare([_ActivityBase], { // summary: // Vista detalle de Activity. Loading Loading @@ -96,6 +97,7 @@ define([ this._emitEvt('REQUEST', { method: "POST", target: ancestorsTarget, action: '_search', query: { returnFields: ['id', 'path', 'name'] } Loading public/javascript/app/designs/details/main/Platform.js +3 −3 Original line number Diff line number Diff line Loading @@ -69,10 +69,10 @@ define([ this._publish(this._widgets.additionalInfo.getChildChannel("childInstances.1", "CLEAR")); }, _itemAvailable: function(response) { _itemAvailable: function(res, resWrapper) { if (response.target === this.target[0]) { this._dataToContacts(response); if (resWrapper.target === this.target[0]) { this._dataToContacts(res); return; } Loading public/javascript/app/designs/details/main/Species.js +7 −5 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ define([ , TemplateInfo , TemplateTitle ) { return declare([Layout, Controller, _Main, _AddTitle, _TitleSelection], { // summary: // Vista detalle de Species. Loading Loading @@ -191,14 +192,14 @@ define([ }); }, _itemAvailable: function(res) { _itemAvailable: function(res, resWrapper) { if (res.target === this.target[1]) { if (resWrapper.target === this.target[1]) { this._dataToDocument(res); return; } if (res.target === this.target[2]) { if (resWrapper.target === this.target[2]) { this._dataToActivities(res); return; } Loading @@ -210,6 +211,7 @@ define([ this._emitEvt('REQUEST', { method: "POST", target: this.target[3], action: '_search', query: { returnFields: ['scientificName', 'rank'] } Loading public/javascript/app/designs/details/main/Statistics.js +8 −8 Original line number Diff line number Diff line Loading @@ -107,22 +107,22 @@ define([ }, _dataAvailable: function(response) { _dataAvailable: function(res, resWrapper) { if (response.data && response.target == this.targetAdministrative) { var data = res.data; if (data && resWrapper.target === this.targetAdministrative) { var id = 1; for (var item in response.data) { for (var item in data) { var result = {}; result.data = response.data[item]; result.data = data[item]; result.name = item; result.id = id; if ("activityOutProject" == item) { if ("activityOutProject" === item) { result.href = "activity"; } else if ("projectOutProgram" == item) { } else if ("projectOutProgram" === item) { result.href = "project"; } else { result.href = item; Loading public/javascript/app/designs/details/main/_DetailsBase.js +3 −3 Original line number Diff line number Diff line Loading @@ -138,12 +138,12 @@ define([ }); }, _itemAvailable: function(response) { _itemAvailable: function(res, resWrapper) { this.inherited(arguments); if (response.target === this.target[1]){ this._dataToActivities(response); if (resWrapper.target === this.target[1]){ this._dataToActivities(res); return; } }, Loading Loading
public/javascript/app/designs/details/main/Activity.js +3 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ define([ , TemplateInfoHelp , _ActivityBase ) { return declare([_ActivityBase], { // summary: // Vista detalle de Activity. Loading Loading @@ -96,6 +97,7 @@ define([ this._emitEvt('REQUEST', { method: "POST", target: ancestorsTarget, action: '_search', query: { returnFields: ['id', 'path', 'name'] } Loading
public/javascript/app/designs/details/main/Platform.js +3 −3 Original line number Diff line number Diff line Loading @@ -69,10 +69,10 @@ define([ this._publish(this._widgets.additionalInfo.getChildChannel("childInstances.1", "CLEAR")); }, _itemAvailable: function(response) { _itemAvailable: function(res, resWrapper) { if (response.target === this.target[0]) { this._dataToContacts(response); if (resWrapper.target === this.target[0]) { this._dataToContacts(res); return; } Loading
public/javascript/app/designs/details/main/Species.js +7 −5 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ define([ , TemplateInfo , TemplateTitle ) { return declare([Layout, Controller, _Main, _AddTitle, _TitleSelection], { // summary: // Vista detalle de Species. Loading Loading @@ -191,14 +192,14 @@ define([ }); }, _itemAvailable: function(res) { _itemAvailable: function(res, resWrapper) { if (res.target === this.target[1]) { if (resWrapper.target === this.target[1]) { this._dataToDocument(res); return; } if (res.target === this.target[2]) { if (resWrapper.target === this.target[2]) { this._dataToActivities(res); return; } Loading @@ -210,6 +211,7 @@ define([ this._emitEvt('REQUEST', { method: "POST", target: this.target[3], action: '_search', query: { returnFields: ['scientificName', 'rank'] } Loading
public/javascript/app/designs/details/main/Statistics.js +8 −8 Original line number Diff line number Diff line Loading @@ -107,22 +107,22 @@ define([ }, _dataAvailable: function(response) { _dataAvailable: function(res, resWrapper) { if (response.data && response.target == this.targetAdministrative) { var data = res.data; if (data && resWrapper.target === this.targetAdministrative) { var id = 1; for (var item in response.data) { for (var item in data) { var result = {}; result.data = response.data[item]; result.data = data[item]; result.name = item; result.id = id; if ("activityOutProject" == item) { if ("activityOutProject" === item) { result.href = "activity"; } else if ("projectOutProgram" == item) { } else if ("projectOutProgram" === item) { result.href = "project"; } else { result.href = item; Loading
public/javascript/app/designs/details/main/_DetailsBase.js +3 −3 Original line number Diff line number Diff line Loading @@ -138,12 +138,12 @@ define([ }); }, _itemAvailable: function(response) { _itemAvailable: function(res, resWrapper) { this.inherited(arguments); if (response.target === this.target[1]){ this._dataToActivities(response); if (resWrapper.target === this.target[1]){ this._dataToActivities(res); return; } }, Loading