Merge pull request #67 from Shabirmean/master

Small changes to the sample CoffeeCup sample
application-manager-new
Shabir Mohamed 9 years ago
commit 7180059df0

@ -136,22 +136,20 @@ function downloadAgent() {
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 = {};
$inputs.each(function() {
values[this.name] = $(this).val();
});
console.log($inputs);
console.log($inputs[0].value);
console.log($inputs[1].value);
var connectedCupRegisterURL = "/connectedcup_mgt/connectedcup/cup/register?" +
"name=" + payload.name + "&owner=" + payload.owner;
var payload = {}
var payload = {};
payload.name = $inputs[0].value;
payload.owner = $inputs[1].value;
invokerUtil.post(
"/connectedcup_mgt/connectedcup/cup/register?name=" + payload.name + "&owner=" + payload.owner,
connectedCupRegisterURL,
payload,
function (data, textStatus, jqxhr) {
hidePopup();

@ -34,7 +34,7 @@
<div class="controls">
<input class="connectedCupName" style="color:#3f3f3f;padding:5px"
type="text"
placeholder="Ex. Lobby_DigitalDisplay"
placeholder="Ex. Office_CoffeeCup"
name="name" size="60" required>
<br/>
<input type="hidden" class="owner" name="owner" value={{@user.username}} />

Loading…
Cancel
Save