return 0;
/* jshint -W061 */
- return eval(amount);
+ try {
+ return eval(amount);
+ } catch (err) {
+ return 0;
+ }
};
ns.round_amount = function(amount, places) {
$(elt).datepicker();
});
- if (ns.PartPicker)
- ns.run_once_for('input.part_autocomplete', 'part_picker', function(elt) {
- kivi.PartPicker($(elt));
- });
+ if (ns.Part) ns.Part.reinit_widgets();
if (ns.ProjectPicker)
ns.run_once_for('input.project_autocomplete', 'project_picker', function(elt) {