From 26ff7685cc2744424ea8c5e74dd7e62f0cfcf6e3 Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Wed, 3 Apr 2013 12:44:23 -0400 Subject: [PATCH] Populate variable needed for batch item receive In the integrated alt editor, we load the sub. grid differently, so 'sub' was not being populated. Since we should only ever have one subscription showing at a time (in this view), we can simply assign the item to 'sub' as it is received. Signed-off-by: Dan Wells Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/web/js/ui/default/serial/subscription.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/web/js/ui/default/serial/subscription.js b/Open-ILS/web/js/ui/default/serial/subscription.js index 10c6345215..6f1291fc49 100644 --- a/Open-ILS/web/js/ui/default/serial/subscription.js +++ b/Open-ILS/web/js/ui/default/serial/subscription.js @@ -320,6 +320,9 @@ openils.Util.addOnLoad( ssub_grid.onPostUpdate = function(fmObject) { parent.document.getElementById(window.name).refresh_command(); } + ssub_grid.onItemReceived = function(item) { + sub = item; + } if (cgi.param("tab") in tab_dispatch) { ssub_grid._fresh = false; // force View/Edit tab to reload (otherwise, it is blank) XXX why? tab_container.selectChild(tab_dispatch[cgi.param("tab")]); -- 2.43.2