Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var sbe = data.getElementsByTagName('servicebroker')[0];
- if (sbe.getAttribute('disabled')!='true')
- {
- App.mq.sbconfig.url = sbe.childNodes[0].nodeValue.replace(/@{rootPath}/,"/");
- App.mq.sbconfig.cookieName = data.getElementsByTagName('sessionid')[0].childNodes[0].nodeValue;
- swiss.ajax({
- type: 'GET',
- url: App.mq.sbconfig.url+"?initial=1",
- success: function(data){
- App.mq.sbconfig.sessionId = getCookie(App.mq.sbconfig.cookieName);
- App.mq.sbconfig.authToken = App.mq.md5.hex_md5(App.mq.sbconfig.sessionId+App.mq.sbconfig.instanceId);
- },
- error: function(xhr) {
- $MQ({
- name: "service.broker.config.fetch.error",
- payload: swiss.unfilterJSON(xhr.responseText)
- });
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement