From cb9ffaf6a46906f5bd1a6e87ca24921ce86c7a84 Mon Sep 17 00:00:00 2001 From: dbwells Date: Tue, 21 Dec 2010 23:09:25 +0000 Subject: [PATCH] For making predictions, remove some debug/dead code, refresh the list. git-svn-id: svn://svn.open-ils.org/ILS/trunk@19038 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/server/serial/manage_subs.js | 27 +++------------------- 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/serial/manage_subs.js b/Open-ILS/xul/staff_client/server/serial/manage_subs.js index 63de9ff2d7..97cc07ccc1 100644 --- a/Open-ILS/xul/staff_client/server/serial/manage_subs.js +++ b/Open-ILS/xul/staff_client/server/serial/manage_subs.js @@ -619,7 +619,7 @@ serial.manage_subs.prototype = { return; } - var num_to_predict = prompt('How many items would you like to predict?', + var num_to_predict = prompt('How many items (per active pattern) would you like to predict?', '12', 'Number of Predicted Items'); num_to_predict = String( num_to_predict ).replace(/\D/g,''); @@ -634,31 +634,10 @@ serial.manage_subs.prototype = { 'open-ils.serial.make_predictions', [ ses(), {"ssub_id":list[i], "num_to_predict":num_to_predict}] ); - util.functional.map_list( - robj, - function(o) { - alert('debug: ' + o.date_expected()); - } - ); + alert('Successfully predicted ' + robj.length + ' issuance(s) for subscription #' + list[i] + '.'); } - return; - /*JSAN.use('util.functional'); - var list = util.functional.map_list( - robj, - function (o) { - o.distribution(obj.sdist_id); - return o; - } - );*/ - - var robj = obj.network.request( - 'open-ils.serial', - 'open-ils.serial.item.fleshed.batch.update', - [ ses(), list ] - ); - - //obj.refresh_list('main'); + obj.refresh_list(); } catch(E) { obj.error.standard_unexpected_error_alert('cmd_make_predictions failed!',E); -- 2.11.0