[open-ils-commits] r13957 - trunk/Open-ILS/xul/staff_client/chrome/content/util (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Sep 3 04:50:28 EDT 2009
Author: phasefx
Date: 2009-09-03 04:50:22 -0400 (Thu, 03 Sep 2009)
New Revision: 13957
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/util/clipboard.js
Log:
don't allow cut from or paste into readonly textboxes
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/clipboard.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/clipboard.js 2009-09-03 08:39:45 UTC (rev 13956)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/clipboard.js 2009-09-03 08:50:22 UTC (rev 13957)
@@ -12,6 +12,7 @@
try {
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
var n = document.popupNode;
+ if (n.getAttribute('readonly')=='true') return;
var v = n.value;
var start = n.selectionStart;
var end = n.selectionEnd;
@@ -48,6 +49,7 @@
try {
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
var n = document.popupNode;
+ if (n.getAttribute('readonly')=='true') return;
var v = n.value;
var start = n.selectionStart;
var end = n.selectionEnd;
More information about the open-ils-commits
mailing list