From: Dan Wells Date: Wed, 3 Apr 2013 16:44:23 +0000 (-0400) Subject: Populate variable needed for batch item receive X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=26ff7685cc2744424ea8c5e74dd7e62f0cfcf6e3;p=Evergreen.git 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 --- 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")]);