[open-ils-commits] r11471 - trunk/Open-ILS/xul/staff_client/server/patron

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Dec 9 01:01:33 EST 2008


Author: miker
Date: 2008-12-09 01:01:30 -0500 (Tue, 09 Dec 2008)
New Revision: 11471

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/summary.js
Log:
disable the remove button by default, but always show it

Modified: trunk/Open-ILS/xul/staff_client/server/patron/summary.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/summary.js	2008-12-09 05:53:13 UTC (rev 11470)
+++ trunk/Open-ILS/xul/staff_client/server/patron/summary.js	2008-12-09 06:01:30 UTC (rev 11471)
@@ -111,11 +111,13 @@
 									label.setAttribute('value',penalties[i].standing_penalty().label());
 									row.appendChild(label);
 
+    								var button = document.createElement('button');
+	    							button.setAttribute('label', $("patronStrings").getString('staff.patron.summary.standing_penalty.remove'));
+	    							button.disabled = true;
+		    						row.appendChild(button);
+
                                     // XXX check a permission here? How to fire the remove action ??? XXX
-                                    if (penalties[i].standing_penalty().id() >= 100) {
-    									var button = document.createElement('button');
-	    								button.setAttribute('label', $("patronStrings").getString('staff.patron.summary.standing_penalty.remove'));
-		    							row.appendChild(button);
+                                    if (penalties[i].standing_penalty().id() > 100) {
                                     }
 
                                     if (penalties[i].standing_penalty().block_list().match(/RENEW/)) addCSSClass(label,'PENALTY_RENEW');



More information about the open-ils-commits mailing list