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 <dbw2@calvin.edu>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
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")]);