changing variable names

revert-dabc3590
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 DEVICE_LOCK = "DEVICE_LOCK";
public static final String FILE_DOWNLOAD = "FILE_UPLOAD"; public static final String FILE_DOWNLOAD = "FILE_UPLOAD_TO_THE_DEVICE";
public static final String FILE_UPLOAD = "FILE_DOWNLOAD"; public static final String FILE_UPLOAD = "FILE_DOWNLOAD_FROM_THE_DEVICE";
public static final String DEVICE_UNLOCK = "DEVICE_UNLOCK"; public static final String DEVICE_UNLOCK = "DEVICE_UNLOCK";
public static final String DEVICE_LOCATION = "DEVICE_LOCATION"; public static final String DEVICE_LOCATION = "DEVICE_LOCATION";
public static final String WIFI = "WIFI"; public static final String WIFI = "WIFI";

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

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

Loading…
Cancel
Save