[open-ils-commits] r9509 - branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial

svn at svn.open-ils.org svn at svn.open-ils.org
Mon May 5 20:52:55 EDT 2008


Author: erickson
Date: 2008-05-05 20:52:54 -0400 (Mon, 05 May 2008)
New Revision: 9509

Modified:
   branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funding_sources.html
   branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funds.html
Log:
updated to use user object, not class

Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funding_sources.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funding_sources.html	2008-05-05 19:31:40 UTC (rev 9508)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funding_sources.html	2008-05-06 00:52:54 UTC (rev 9509)
@@ -15,6 +15,8 @@
     dojo.require('openils.acq.CurrencyType');
     dojo.require('openils.widget.OrgUnitFilteringSelect');
 
+    var globalUser = new openils.User();
+
     function createFS(fields) {
         /** Creates a new funding source */
         openils.acq.FundingSource.create(
@@ -40,7 +42,7 @@
         <div dojoType="dijit.TooltipDialog" execute="createFS(arguments[0]);">
             <script type='dojo/connect' event='onOpen'>
                 openils.acq.CurrencyType.loadSelectWidget(fsCurrencySelector);
-                openils.User.buildPermOrgSelector('ADMIN_FUNDING_SOURCE', fsOwnerSelect);
+                globalUser.buildPermOrgSelector('ADMIN_FUNDING_SOURCE', fundOwnerSelect);
             </script>
 
             <table class='dijitTooltipTable'>
@@ -85,7 +87,7 @@
 <script>
 
     function loadFSGrid() {
-        new openils.User().getBySession();
+        globalUser.getBySession();
 
         /** define how the primary grid is rendered */
 

Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funds.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funds.html	2008-05-05 19:31:40 UTC (rev 9508)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funds.html	2008-05-06 00:52:54 UTC (rev 9509)
@@ -15,12 +15,15 @@
     dojo.require('openils.acq.CurrencyType');
     dojo.require('openils.widget.OrgUnitFilteringSelect');
 
+    var globalUser = new openils.User();
+
     function createFund(fields) {
         /** Creates a new fund source */
         openils.acq.Fund.create(
             fields, 
             function(fundId) {
                 var evt = openils.Event.parse(fundId);
+                alert(evt);
                 if(evt) {
                     alert(evt); /* XXX */
                     return;
@@ -40,7 +43,7 @@
         <div dojoType="dijit.TooltipDialog" execute="createFund(arguments[0]);">
             <script type='dojo/connect' event='onOpen'>
                 openils.acq.CurrencyType.loadSelectWidget(fundCurrencySelector);
-                openils.User.buildPermOrgSelector('ADMIN_FUND', fundOwnerSelect);
+                globalUser.buildPermOrgSelector('ADMIN_FUND', fundOwnerSelect);
             </script>
 
             <table class='dijitTooltipTable'>
@@ -89,7 +92,7 @@
 <script>
 
     function loadFundGrid() {
-        new openils.User().getBySession();
+        globalUser.getBySession();
 
         /** define how the primary grid is rendered */
 



More information about the open-ils-commits mailing list