From: dbs Date: Tue, 27 Jul 2010 21:34:43 +0000 (+0000) Subject: Prevent years in "New Fund" dialog from being displayed with a comma separator X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8968af12d573d7b06f86fc0c027c6e6ce60c2854;p=evergreen%2Fbjwebb.git Prevent years in "New Fund" dialog from being displayed with a comma separator Also limit to a seemingly reasonable range of 2000 - 2200 for the year git-svn-id: svn://svn.open-ils.org/ILS/trunk@17042 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/templates/default/acq/financial/list_funds.tt2 b/Open-ILS/web/templates/default/acq/financial/list_funds.tt2 index 7ac797103..cb653d94b 100644 --- a/Open-ILS/web/templates/default/acq/financial/list_funds.tt2 +++ b/Open-ILS/web/templates/default/acq/financial/list_funds.tt2 @@ -23,6 +23,14 @@ showing tags */ return link; } + + function createNewFund() { + /* Set the display constraints before drawing the edit dialog; + introduce Y2K and Y2K2C problem */ + lfGrid.overrideWidgetArgs = {year: { dijitArgs: {constraints : {min: 2000, max: 2200, pattern : '####'}}}}; + lfGrid.showCreateDialog(); + } + @@ -31,7 +39,7 @@
Funds - +