changing variable names

merge-requests/1/head
Nirothipan 7 years ago
parent a79580b8ac
commit 2ddfbed6db

@ -74,8 +74,8 @@ public final class AndroidConstants {
}
public static final String DEVICE_LOCK = "DEVICE_LOCK";
public static final String FILE_DOWNLOAD = "FILE_UPLOAD";
public static final String FILE_UPLOAD = "FILE_DOWNLOAD";
public static final String FILE_DOWNLOAD = "FILE_UPLOAD_TO_THE_DEVICE";
public static final String FILE_UPLOAD = "FILE_DOWNLOAD_FROM_THE_DEVICE";
public static final String DEVICE_UNLOCK = "DEVICE_UNLOCK";
public static final String DEVICE_LOCATION = "DEVICE_LOCATION";
public static final String WIFI = "WIFI";

@ -37,7 +37,7 @@ function changeLabel(type) {
if (type == "no") {
$(".modal #operation-warn-msg span").text("File will be saved in default location if not specified.");
$(".modal #operation-warn-msg").removeClass("hidden");
document.getElementById('fileURL').placeholder = "FTP URL of the file";
document.getElementById('fileURL').placeholder = "HTTP/FTP URL of the file";
document.getElementById('fileLocation').placeholder = "Location to save file in device";
} else {
$(".modal #operation-warn-msg").addClass("hidden");
@ -197,13 +197,11 @@ function validatePayload(operationCode, payload) {
break;
case "FILE_TRANSFER":
if (payload.upload && !payload.fileURL) {
returnVal = "Please enter the FTP URL of the file";
returnVal = "Please enter the URL of the file";
} else if (!payload.upload && !payload.fileURL) {
returnVal = "Please enter the FTP URL of the folder to upload file";
}
else if (!payload.ftpPassword) {
returnVal = "Please enter FTP password";
} else if (!payload.upload && !payload.fileLocation) {
else if (!payload.upload && !payload.fileLocation) {
returnVal = "Please specify the file location in device";
}
break;

@ -157,7 +157,7 @@
"type": "password",
"id": "ftpPassword",
"optional": false,
"label": "FTP Password"
"label": "Password (Ignore if you don't need any)"
},
{
"type": "text",

Loading…
Cancel
Save