From: erickson Date: Mon, 14 Apr 2008 20:23:32 +0000 (+0000) Subject: building org tree widget instead of filterselect for deciding owning location for... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c8c5b2fd062f940ce96fdb4a6f367c5e13dc37c6;p=Evergreen.git building org tree widget instead of filterselect for deciding owning location for new funding source. will refactor this tree building so others can use it git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@9355 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funding_sources.html b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funding_sources.html index a80c926a8e..91974f0940 100644 --- a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funding_sources.html +++ b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funding_sources.html @@ -17,15 +17,22 @@ function createFS(fields) { /** Creates a new funding source */ + var tree = dijit.byId('oils-acq-funding_source-owner-tree'); + fields.owner = tree.selected; openils.acq.FundingSource.create( fields, function(fsId) { - location.href = /* go to the details page for this fs */ - '${c.oils.acq.prefix.value}/funding_source/view/'+fsId; + var evt = openils.Event.parse(fsId); + if(evt) { + alert(evt); /* XXX */ + return; + } else { + location.href = /* go to the details page for this fs */ + '${c.oils.acq.prefix.value}/funding_source/view/'+fsId; + } } ); } -
@@ -38,19 +45,17 @@ - + - + - + - - +
@@ -74,7 +79,7 @@