From c77bc9d85836c6b67ff60652486645a6104cb5c7 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 20 Dec 2005 00:28:05 +0000 Subject: [PATCH] utility tweaks git-svn-id: svn://svn.open-ils.org/ILS/trunk@2461 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/chrome/content/evergreen/util/list.js | 1 + .../xul/staff_client/chrome/content/evergreen/util/money.js | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/util/list.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/util/list.js index dcf7cd74da..7d649f7204 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/util/list.js @@ -99,6 +99,7 @@ util.list.prototype = { rnode.setAttribute(i,params.attributes[i]); } } + return rnode; }, '_append_to_tree' : function (params) { diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/util/money.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/util/money.js index 40fa60db30..482283aad9 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/util/money.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/util/money.js @@ -20,8 +20,6 @@ util.money.dollars_float_to_cents_integer = function( money ) { cents = cents + '0'; } } catch(E) { - // I am not sure why these are getting thrown, especially with the code still working - dump("util.money: cents.length? " + E + "\n"); } try { if (cents.length > 2) { @@ -29,18 +27,15 @@ util.money.dollars_float_to_cents_integer = function( money ) { cents = cents.substr(0,2); } } catch(E) { - dump("util.money:2: cents.length? " + E + "\n"); } var total = 0; try { if (parseInt(cents)) total += parseInt(cents); } catch(E) { - dump("util.money: parseInt(cents)? " + E + "\n"); } try { if (parseInt(dollars)) total += (parseInt(dollars) * 100); } catch(E) { - dump("util.money: parseInt(dollars)? " + E + "\n"); } return total; } @@ -54,7 +49,6 @@ util.money.cents_as_dollars = function( cents ) { case 1: cents = '00' + cents; break; } } catch(E) { - dump("util.money: cents_as_dollars: cents.length? " + E + "\n"); } return cents.substr(0,cents.length-2) + '.' + cents.substr(cents.length - 2); } -- 2.43.2