This commit is contained in:
@@ -68,15 +68,15 @@ app.ravLicense = (function () {
|
||||
//clean up the data before submit
|
||||
|
||||
//submit
|
||||
alert("STUB submit");
|
||||
// app.api.createRavLicense(submitData, function (res) {
|
||||
// if (res.error) {
|
||||
// $.gevent.publish('app-show-error', res.msg);
|
||||
// } else {
|
||||
// $('#key').val(res);
|
||||
// return false;
|
||||
// }
|
||||
// });
|
||||
// alert("STUB submit");
|
||||
app.api.createRavLicense(submitData, function (res) {
|
||||
if (res.error) {
|
||||
$.gevent.publish('app-show-error', res.msg);
|
||||
} else {
|
||||
$('#key').val(res);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
return false; //prevent default
|
||||
};
|
||||
@@ -135,11 +135,12 @@ app.ravLicense = (function () {
|
||||
//get company name to pre-fill regto
|
||||
//api/site/77/name
|
||||
|
||||
app.api.get("site/" + stateMap.id + "/customerinfo", function (res) {
|
||||
app.api.get("site/" + stateMap.id + "/newlicenseinfo", function (res) {
|
||||
if (res.error) {
|
||||
$.gevent.publish("app-show-error", res.msg);
|
||||
} else {
|
||||
$("#registeredTo").val(res.name);
|
||||
$("#dbId").val(res.dbId);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label for="dbId">dbId</label>
|
||||
<input class="form-control" type="text" id="dbId" name="dbId" value="23945a86-0aa7-46de-9485-539ec7d31b31">
|
||||
<input class="form-control" type="text" id="dbId" name="dbId" value="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user