in clns-acuity-admin/acuity-core/src/main/resources/public/js/study-setup/2-edit-study.js [336:410]
$(".enabled").each(function () {
if (scope.studyWizard.addedStudyMode) {
return false;
}
var id = this.id;
if ($.trim($(this).val()).length == 0 && id != "studyDrugIdSelect") {
isEditable = true;
return false;
}
if (id == "studyName" && $.trim($(this).val()) != $.trim(scope.study.studyName)) {
isEditable = true;
return false;
}
if (id == "clinicalStudyName" && $.trim($(this).val()) != $.trim(scope.study.clinicalStudyName)) {
isEditable = true;
return false;
}
if (id == "clinicalStudyId" && $.trim($(this).val()) != $.trim(scope.study.clinicalStudyId)) {
isEditable = true;
return false;
}
if (id == "studyPhase" && $.trim($(this).val()) != $.trim(scope.study.phase)) {
isEditable = true;
return false;
}
if (id == "studyType" && $.trim($(this).val()) != $.trim(scope.study.type)) {
isEditable = true;
return false;
}
if (id == "studyDeliveryModel" && $.trim($(this).val()) != $.trim(scope.study.deliveryModel)) {
isEditable = true;
return false;
}
if (id == "studyPrimarySource" && $.trim($(this).val()) != $.trim(scope.study.primarySource)) {
isEditable = true;
return false;
}
if (id == "studyFsiPln" && $.trim($(this).val()) != $.trim(scope.study.firstSubjectInPlanned)) {
isEditable = true;
return false;
}
if (id == "studyDblPln" && $.trim($(this).val()) != $.trim(scope.study.databaseLockPlanned)) {
isEditable = true;
return false;
}
if (id == "studyBlinding" && $.trim($(this).val()) != scope.study.blinding) {
isEditable = true;
return false;
}
if (id == "studyRandomisation" && $.trim($(this).val()) != scope.study.randomisation) {
isEditable = true;
return false;
}
if (id == "studyRegulatory" && $.trim($(this).val()) != scope.study.regulatory) {
isEditable = true;
return false;
}
if (id == "studyScheduled" && $(this).prop("checked") != scope.study.scheduled) {
isEditable = true;
return false;
}
if (id == "autoAssignedCountry" && $(this).prop("checked") != scope.study.autoAssignedCountry) {
isEditable = true;
return false;
}
if (id == "xAxisLimitedToVisit" && $(this).prop("checked") != scope.study.xAxisLimitedToVisit) {
isEditable = true;
return false;
}
if (id == "amlEnabled" && $(this).prop("checked") != scope.study.amlEnabled) {
isEditable = true;
return false;
}
});