fixed depth calculations bug
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 2 Mar 2006 19:05:59 +0000 (19:05 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 2 Mar 2006 19:05:59 +0000 (19:05 +0000)
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

index c83bccf..46ab815 100644 (file)
@@ -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 ); };