This commit is contained in:
@@ -415,9 +415,10 @@ app.api = (function () {
|
||||
$.ajax({
|
||||
method: "post",
|
||||
dataType: "json",
|
||||
url: app.shell.stateMap.apiUrl + "order/shareit",
|
||||
username: 'Y24PYYDQSA1L12905N5MKU',
|
||||
password: 'MA8GMQK2PC3FDNT1RTR68R',
|
||||
url: app.shell.stateMap.apiUrl + "order/shareit",
|
||||
headers: {
|
||||
"Authorization": "Basic " + btoa('xxxxxx' + ":" + 'xxxxxx')
|
||||
},
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify(objData),
|
||||
success: function (data) {
|
||||
|
||||
@@ -55,6 +55,7 @@ app.rfsettings = (function () {
|
||||
//
|
||||
onTest = function (event) {
|
||||
event.preventDefault();
|
||||
//debugger;
|
||||
var submitData = {
|
||||
creation_date: "2018-06-19T11:08:09.0000000Z", // <-- NEW
|
||||
id: 283832781, // <-- NEW
|
||||
@@ -93,10 +94,11 @@ app.rfsettings = (function () {
|
||||
};
|
||||
app.api.test(submitData, function (res) {
|
||||
if (res.error) {
|
||||
alert("ERROR");
|
||||
$.gevent.publish("app-show-error", res.msg);
|
||||
} else {
|
||||
//do nothing, success!
|
||||
|
||||
alert("SUCCESS!");
|
||||
//$('#key').val(res);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,19 +1,35 @@
|
||||
<div>
|
||||
<div class="alert alert-success mb-5" id="about" />
|
||||
<div class="alert alert-success mb-5" id="about"></div>
|
||||
|
||||
<form id="frm" method="post" action="index.html">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="oldpassword">Change password</label>
|
||||
<input class="form-control" type="text" id="oldpassword" name="oldpassword" placeholder="current password" value="">
|
||||
<input class="form-control" type="text" id="newpassword" name="newpassword" placeholder="new password" value="">
|
||||
<input
|
||||
class="form-control"
|
||||
type="text"
|
||||
id="oldpassword"
|
||||
name="oldpassword"
|
||||
placeholder="current password"
|
||||
value=""
|
||||
/>
|
||||
<input
|
||||
class="form-control"
|
||||
type="text"
|
||||
id="newpassword"
|
||||
name="newpassword"
|
||||
placeholder="new password"
|
||||
value=""
|
||||
/>
|
||||
<div class="app-frm-buttons mt-5">
|
||||
<button id="btn-change-password">Update</button>
|
||||
</div>
|
||||
|
||||
<div class="app-frm-buttons mt-5">
|
||||
<button id="btn-test" class="btn btn-warning">TEST THAT THING</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<hr />
|
||||
<div class="app-frm-buttons mt-5">
|
||||
<button id="btn-test" class="btn btn-warning">TEST THAT THING</button>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user