[open-ils-commits] r11470 - trunk/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Dec 9 00:53:16 EST 2008
Author: miker
Date: 2008-12-09 00:53:13 -0500 (Tue, 09 Dec 2008)
New Revision: 11470
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/summary.js
Log:
only show the remove button on non-system penalties
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:22:20 UTC (rev 11469)
+++ trunk/Open-ILS/xul/staff_client/server/patron/summary.js 2008-12-09 05:53:13 UTC (rev 11470)
@@ -106,15 +106,17 @@
var row = document.createElement('row');
var label = document.createElement('label');
- var button = document.createElement('button');
//x.setAttribute('value',penalties[i].penalty_type());
label.setAttribute('value',penalties[i].standing_penalty().label());
row.appendChild(label);
// XXX check a permission here? How to fire the remove action ??? XXX
- button.setAttribute('label', $("patronStrings").getString('staff.patron.summary.standing_penalty.remove'));
- row.appendChild(button);
+ 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().block_list().match(/RENEW/)) addCSSClass(label,'PENALTY_RENEW');
if (penalties[i].standing_penalty().block_list().match(/HOLD/)) addCSSClass(label,'PENALTY_HOLD');
More information about the open-ils-commits
mailing list