Bug #2490 » cb12.patch
components/com_comprofiler/js/cb12.js | ||
---|---|---|
/**
|
||
* 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) {
|
||
... | ... | |
cbx.checked = false;
|
||
}
|
||
}
|
||
f.elements[subtaskName].value = subtaskValue;
|
||
if (subtaskName && subtaskValue) {
|
||
f.elements[subtaskName].value = subtaskValue;
|
||
}
|
||
submitbutton(task);
|
||
}
|
||
return false;
|
||
... | ... | |
}
|
||
}
|
||
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" );
|