4314 |
20 Jan 17 |
nicklas |
// Used on the Administrate -> Services page |
4314 |
20 Jan 17 |
nicklas |
// Links the "Configure" button to configuration page. |
4314 |
20 Jan 17 |
nicklas |
// See META-INF/extensions.xml and OpenGridServiceConfigureFactory |
4314 |
20 Jan 17 |
nicklas |
var OpenGridServiceActions = function() |
4314 |
20 Jan 17 |
nicklas |
5 |
{ |
4314 |
20 Jan 17 |
nicklas |
var action = {}; |
4314 |
20 Jan 17 |
nicklas |
7 |
|
4314 |
20 Jan 17 |
nicklas |
action.initPage = function() |
4314 |
20 Jan 17 |
nicklas |
9 |
{ |
4314 |
20 Jan 17 |
nicklas |
Buttons.addClickHandler('opengrid-service-configure', action.configure); |
4314 |
20 Jan 17 |
nicklas |
11 |
} |
4314 |
20 Jan 17 |
nicklas |
12 |
|
4314 |
20 Jan 17 |
nicklas |
action.configure = function(event) |
4314 |
20 Jan 17 |
nicklas |
14 |
{ |
4314 |
20 Jan 17 |
nicklas |
var url = Data.get(event.currentTarget, 'url'); |
4314 |
20 Jan 17 |
nicklas |
url += '?ID='+App.getSessionId(); |
4314 |
20 Jan 17 |
nicklas |
location.href = url; |
4314 |
20 Jan 17 |
nicklas |
18 |
} |
4314 |
20 Jan 17 |
nicklas |
19 |
|
4314 |
20 Jan 17 |
nicklas |
return action; |
4314 |
20 Jan 17 |
nicklas |
21 |
}(); |
4314 |
20 Jan 17 |
nicklas |
22 |
|
4314 |
20 Jan 17 |
nicklas |
Doc.onLoad(OpenGridServiceActions.initPage); |
4314 |
20 Jan 17 |
nicklas |
24 |
|