disable selector cells for system billing types so no deletion attempts are allowed
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 4 Jun 2009 17:46:08 +0000 (17:46 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 4 Jun 2009 17:46:08 +0000 (17:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13317 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/conify/global/config/billing_type.js

index f7514c8..de27506 100644 (file)
@@ -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',