From a8145f65ba04d50555f8d0ed0176fdca5f81acf6 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 2 Mar 2006 19:05:59 +0000 Subject: [PATCH] fixed depth calculations bug git-svn-id: svn://svn.open-ils.org/ILS/trunk@3239 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/admin/non_cat_types.js | 3 +++ 1 file changed, 3 insertions(+) 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 ); }; -- 2.43.2