From: erickson Date: Thu, 2 Mar 2006 19:05:59 +0000 (+0000) Subject: fixed depth calculations bug X-Git-Url: https://git.evergreen-ils.org/?p=Evergreen.git;a=commitdiff_plain;h=a8145f65ba04d50555f8d0ed0176fdca5f81acf6 fixed depth calculations bug git-svn-id: svn://svn.open-ils.org/ILS/trunk@3239 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/admin/non_cat_types.js b/Open-ILS/xul/staff_client/server/admin/non_cat_types.js index c83bccfd29..46ab815da7 100644 --- a/Open-ILS/xul/staff_client/server/admin/non_cat_types.js +++ b/Open-ILS/xul/staff_client/server/admin/non_cat_types.js @@ -87,8 +87,11 @@ function ncSetRowCallbacks( type, owner, tbody, row ) { checkDisabled( $n(row, 'nc_edit'), owner, 'UPDATE_NON_CAT_TYPE'); + /* mydepth = findOrgDepth( PERMS['DELETE_NON_CAT_TYPE'] ); if( mydepth != -1 && mydepth <= tdepth ) $n(row, 'nc_delete').disabled = false; + */ + checkDisabled( $n(row, 'nc_delete'), owner, 'DELETE_NON_CAT_TYPE' ); $n(row, 'nc_edit').onclick = function() { ncEditType( tbody, row, type ); };