ideaconsult / jToxKit

jToxKit new generation
MIT License
2 stars 2 forks source link

ajaxSettings is not passed to the nested kit (onDetails) #69

Open vedina opened 3 years ago

vedina commented 3 years ago

Please pass ajaxSettings from MatrixKit to the SubstanceKit , e.g. in MatrixKit.prototype.onStructures and MatrixKit.prototype.onSubstances ; otherwise the read across workflow is nonfunctional (one can not select substances to create the data matrix)

    MatrixKit.prototype.onSubstances = function (id, panel) {
        if (!this.substanceKit) {
.......
                onDetails: function (substRoot, data) {
                    var baseUrl = jT.formBaseUrl(this.datasetUri),
                        substanceUri = baseUrl + 'substance?type=related&addDummySubstance=true&compound_uri=' + encodeURIComponent(data.compound.URI) + 
                            '&filterbybundle=' + encodeURIComponent(self.bundleUri) + 
                            '&bundle_uri=' + encodeURIComponent(self.bundleUri);
                    new jT.ui.Substance({
                        **ajaxSettings : this.settings.ajaxSettings,**