[open-ils-commits] r19039 - branches/rel_2_0/Open-ILS/xul/staff_client/server/serial (dbwells)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Dec 21 18:10:25 EST 2010
Author: dbwells
Date: 2010-12-21 18:10:18 -0500 (Tue, 21 Dec 2010)
New Revision: 19039
Modified:
branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/manage_subs.js
Log:
For making predictions, remove some debug/dead code, refresh the list.
Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/manage_subs.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/manage_subs.js 2010-12-21 23:09:25 UTC (rev 19038)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/manage_subs.js 2010-12-21 23:10:18 UTC (rev 19039)
@@ -619,7 +619,7 @@
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,32 +634,11 @@
'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;
- }
- );*/
+ obj.refresh_list();
- var robj = obj.network.request(
- 'open-ils.serial',
- 'open-ils.serial.item.fleshed.batch.update',
- [ ses(), list ]
- );
-
- //obj.refresh_list('main');
-
} catch(E) {
obj.error.standard_unexpected_error_alert('cmd_make_predictions failed!',E);
}
More information about the open-ils-commits
mailing list