[open-ils-commits] r15976 - trunk/Open-ILS/web/js/ui/default/acq/picklist (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 25 10:10:57 EDT 2010
Author: phasefx
Date: 2010-03-25 10:10:55 -0400 (Thu, 25 Mar 2010)
New Revision: 15976
Modified:
trunk/Open-ILS/web/js/ui/default/acq/picklist/user_request.js
Log:
fix some bugs that slipped in with AutoFieldWidget and .hide/.show (Set No Hold and View Picklist versus Add to Picklist)
Modified: trunk/Open-ILS/web/js/ui/default/acq/picklist/user_request.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/picklist/user_request.js 2010-03-25 13:37:32 UTC (rev 15975)
+++ trunk/Open-ILS/web/js/ui/default/acq/picklist/user_request.js 2010-03-25 14:10:55 UTC (rev 15976)
@@ -29,11 +29,11 @@
// toggle the View Picklist/Add to Picklist button label
if (aur_obj.lineitem()) {
+ openils.Util.hide( 'add_to_picklist' );
+ openils.Util.show( 'view_picklist' );
+ } else {
+ openils.Util.hide( 'view_picklist' );
openils.Util.show( 'add_to_picklist' );
- openils.Util.hide( 'view_picklist' );
- } else {
- openils.Util.show( 'view_picklist' );
- openils.Util.hide( 'add_to_picklist' );
}
// draw a detail page for a particular request
@@ -134,7 +134,7 @@
{ async: true,
params: [openils.User.authtoken, [reqId]],
oncomplete: function(r) {
- drawRequest();
+ location.href = location.href; // kludge to reload the interface
}
}
);
More information about the open-ils-commits
mailing list