|
|
@ -136,22 +136,20 @@ function downloadAgent() {
|
|
|
|
|
|
|
|
|
|
|
|
var $inputs = $('#downloadForm :input');
|
|
|
|
var $inputs = $('#downloadForm :input');
|
|
|
|
|
|
|
|
|
|
|
|
// not sure if you wanted this, but I thought I'd add it.
|
|
|
|
|
|
|
|
// get an associative array of just the values.
|
|
|
|
|
|
|
|
var values = {};
|
|
|
|
var values = {};
|
|
|
|
$inputs.each(function() {
|
|
|
|
$inputs.each(function() {
|
|
|
|
values[this.name] = $(this).val();
|
|
|
|
values[this.name] = $(this).val();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
console.log($inputs);
|
|
|
|
var connectedCupRegisterURL = "/connectedcup_mgt/connectedcup/cup/register?" +
|
|
|
|
console.log($inputs[0].value);
|
|
|
|
"name=" + payload.name + "&owner=" + payload.owner;
|
|
|
|
console.log($inputs[1].value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var payload = {}
|
|
|
|
var payload = {};
|
|
|
|
payload.name = $inputs[0].value;
|
|
|
|
payload.name = $inputs[0].value;
|
|
|
|
payload.owner = $inputs[1].value;
|
|
|
|
payload.owner = $inputs[1].value;
|
|
|
|
|
|
|
|
|
|
|
|
invokerUtil.post(
|
|
|
|
invokerUtil.post(
|
|
|
|
"/connectedcup_mgt/connectedcup/cup/register?name=" + payload.name + "&owner=" + payload.owner,
|
|
|
|
connectedCupRegisterURL,
|
|
|
|
payload,
|
|
|
|
payload,
|
|
|
|
function (data, textStatus, jqxhr) {
|
|
|
|
function (data, textStatus, jqxhr) {
|
|
|
|
hidePopup();
|
|
|
|
hidePopup();
|
|
|
|