From 06ca57f3c603eedd8af38e3acf31791c64faa56b Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 13 Nov 2014 09:42:45 -0800 Subject: [PATCH] LP#1287370: minor textual cleanup - remove trailing spaces - remove debug logging Signed-off-by: Galen Charlton Signed-off-by: Erica Rohlfs Signed-off-by: Mike Rylander Signed-off-by: Ben Shum --- Open-ILS/web/js/dojo/openils/widget/AutoGrid.js | 9 ++++----- Open-ILS/web/js/ui/default/acq/financial/list_funds.js | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index 873bb244d3..8936338063 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -40,7 +40,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { suppressLinkedFields : null, // list of fields whose linked display data should not be fetched from the server urlNavigation : false, - // When using urlNavigation, this is a stash where the + // When using urlNavigation, this is a stash where the // caller can place arbitrary data to be passed around // between pages. urlUserData : {}, @@ -66,7 +66,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { this.overrideEditWidgets = {}; this.overrideEditWidgetClass = {}; this.overrideWidgetArgs = {}; - this.extractUrlOps(); + this.extractUrlOps(); this.nls = dojo.i18n.getLocalization('openils.widget', 'AutoFieldWidget'); @@ -101,7 +101,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { self.cachedQueryOpts.offset = self.displayOffset += self.displayLimit; if (self.urlNavigation) { self.applyAndExecuteUrlOps( - self.cachedQueryOpts.offset, + self.cachedQueryOpts.offset, self.cachedQuerySearch ); } else { @@ -128,7 +128,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { {fmClass:self.fmClass, suppressFilterFields:self.suppressFilterFields}) self.filterDialog.onApply = function(filter) { - if (self.urlNavigation) { + if (self.urlNavigation) { self.applyAndExecuteUrlOps(0, filter); } else { @@ -644,7 +644,6 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { this.urlOpsApplied = true; // on the first page load, apply the ops from the URL if (this.urlOps) { - console.log('applying url ops: ' + js2JSON(this.urlOps)); opts.offset = self.displayOffset = this.urlOps.offset; search = dojo.mixin(search || {}, this.urlOps.filter); } diff --git a/Open-ILS/web/js/ui/default/acq/financial/list_funds.js b/Open-ILS/web/js/ui/default/acq/financial/list_funds.js index fb1f246dd5..69ec8b4e07 100644 --- a/Open-ILS/web/js/ui/default/acq/financial/list_funds.js +++ b/Open-ILS/web/js/ui/default/acq/financial/list_funds.js @@ -95,7 +95,7 @@ function initPage() { adminPermOrgs = list; loadFundGrid( lfGrid.urlUserData.year - || new openils.CGI().param('year') + || new openils.CGI().param('year') || new Date().getFullYear().toString()); }, true, true -- 2.43.2