# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/js/cb12.js +++ components/com_comprofiler/js/cb12.js @@ -58,6 +58,16 @@ /** * Performs task/subtask on table row id */ +function cbIsChecked(isitchecked) { + if (isitchecked == true) { + document.adminForm.boxchecked.value++; + } else { + document.adminForm.boxchecked.value--; + } +} +/** +* Performs task/subtask on table row id +*/ function cbListItemTask( cb, task, subtaskName, subtaskValue, fldName, id ) { var f = cbParentForm(cb); if (cb) { @@ -72,7 +82,9 @@ cbx.checked = false; } } - f.elements[subtaskName].value = subtaskValue; + if (subtaskName && subtaskValue) { + f.elements[subtaskName].value = subtaskValue; + } submitbutton(task); } return false; @@ -95,12 +107,14 @@ } } if ( oneChecked ) { - if ( subtaskValue == 'deleterows' ) { - if ( ! confirm('Are you sure you want to delete selected items ?') ) { - return false; - } - } - f.elements[subtaskName].value = subtaskValue; + if (subtaskName && subtaskValue) { + if ( subtaskValue == 'deleterows' ) { + if ( ! confirm('Are you sure you want to delete selected items ?') ) { + return false; + } + } + f.elements[subtaskName].value = subtaskValue; + } submitbutton(task); } else { alert( "no items selected" );