Behaviour.addLoadEvent not working after TeamCity upgrade to 2018.1.1

We recently upgraded our teamcity server from TeamCity 2017.2.1. to 2018.1.1.We developed a plugin in TeamCity 2017.2.1.

The folllowing snippert of code was used in the plugin server jsp to load a function on startup

 

<bs:linkScript>

  /js/bs/testConnection.js

  /js/bs/forms.js

    plugins/teamcity-veracode-plugin/js/editSettings.js

  </bs:linkScript>

   <script type="text/javascript">   

    Behaviour.addLoadEvent(function() {

      VeraCode.SettingsForm.setupEventHandlers();

      VeraCode.SettingsForm.changeProxyValues();      

      VeraCode.SettingsForm.loadCredentialType('${globalSettingsBean.credentialsType}');

    });

  </script>

 

After upgrade to 2018.1.1,we see that this javascript fails to load with the error "Behaviour is not defined".Not sure on why this error is occuring.Is there any change ito the internal js libraries after upgrade?

 

Please sign in to leave a comment.