Skip to content

Commit

Permalink
Merge pull request #732 from EquinoxOpenLibraryInitiative/ERM-63-mode…
Browse files Browse the repository at this point in the history
…rn-jquery-update-with-php8-fixes-WIP

JQ syntax changed for checkbox inspection, updating to match
  • Loading branch information
Randall Rupper authored Sep 26, 2023
2 parents ef1cf64 + d763b29 commit d97e3a3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion auth/ajax_processing.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
$sUser->passwordPrefix = $prefix;
}

if ($_POST['adminInd'] == "1"){
if ($_POST['adminInd'] == "1" || $_POST['adminInd'] == "Y"){
$sUser->adminInd = "Y";
}else{
$sUser->adminInd = "N";
Expand Down
2 changes: 1 addition & 1 deletion auth/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ if (!Array.prototype.indexOf)
}

function getCheckboxValue(field){
if ($('#' + field + ':checked').attr('checked')) {
if ($('#' + field)[0].checked) {
return 1;
}else{
return 0;
Expand Down
2 changes: 1 addition & 1 deletion js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function toggleDivState(divID, intDisplay) {


function getCheckboxValue(field){
if ($('#' + field + ':checked').attr('checked')) {
if ($('#' + field)[0].checked) {
return 1;
}else{
return 0;
Expand Down
2 changes: 1 addition & 1 deletion licensing/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function toggleDivState(divID, intDisplay) {


function getCheckboxValue(field){
if ($('#' + field + ':checked').attr('checked')) {
if ($('#' + field)[0].checked) {
return 1;
}else{
return 0;
Expand Down
2 changes: 1 addition & 1 deletion management/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function toggleDivState(divID, intDisplay) {


function getCheckboxValue(field){
if ($('#' + field + ':checked').attr('checked')) {
if ($('#' + field)[0].checked) {
return 1;
}else{
return 0;
Expand Down
2 changes: 1 addition & 1 deletion organizations/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ if (!Array.prototype.indexOf)
}

function getCheckboxValue(field){
if ($('#' + field + ':checked').attr('checked')) {
if ($('#' + field)[0].checked) {
return 1;
}else{
return 0;
Expand Down
2 changes: 1 addition & 1 deletion resources/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ if (!Array.prototype.indexOf)
}

function getCheckboxValue(field){
if ($('#' + field + ':checked').attr('checked')) {
if ($('#' + field)[0].checked) {
return 1;
}else{
return 0;
Expand Down
2 changes: 1 addition & 1 deletion usage/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function replaceSpecial(myString)

function getCheckboxValue(field)
{
if ($('#' + field + ':checked').attr('checked'))
if ($('#' + field)[0].checked)
{
return 1;
}
Expand Down

0 comments on commit d97e3a3

Please sign in to comment.