From: erickson Date: Thu, 4 Jun 2009 17:46:08 +0000 (+0000) Subject: disable selector cells for system billing types so no deletion attempts are allowed X-Git-Tag: sprint4-merge-nov22~9857 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7d0950e2ae3af8ee6cd181df0de3741d988d41f9;p=working%2FEvergreen.git disable selector cells for system billing types so no deletion attempts are allowed git-svn-id: svn://svn.open-ils.org/ILS/trunk@13317 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js b/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js index f7514c81b9..de27506856 100644 --- a/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js +++ b/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js @@ -22,6 +22,11 @@ function getOrgInfo(rowIndex, item) { function btInit() { + btGrid.disableSelectorForRow = function(rowIdx) { + var item = btGrid.getItem(rowIdx); + return (btGrid.store.getValue(item, 'id') < 100); + } + buildBTGrid(); var connect = function() { dojo.connect(btContextOrgSelect, 'onChange',