[open-ils-commits] r14404 - trunk/Open-ILS/web/js/ui/default/acq/common (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Oct 13 17:20:54 EDT 2009


Author: erickson
Date: 2009-10-13 17:20:48 -0400 (Tue, 13 Oct 2009)
New Revision: 14404

Modified:
   trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
Log:
avoid auto adding a new distrib formula row with every rendering of the li details page

Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js	2009-10-13 21:12:24 UTC (rev 14403)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js	2009-10-13 21:20:48 UTC (rev 14404)
@@ -506,7 +506,6 @@
 
         this._fetchDistribFormulas(
             function() {
-                self._addDistribFormulaRow();
                 openils.acq.Lineitem.fetchAttrDefs(
                     function() { 
                         self._fetchLineitem(liId, function(li){self._drawCopies(li);}); 
@@ -634,6 +633,7 @@
                         self.distribFormulaStore = 
                             new dojo.data.ItemFileReadStore(
                                 {data:acqdf.toStoreData(self.distribForms)});
+                        self._addDistribFormulaRow();
                         onload();
                     }
                 }



More information about the open-ils-commits mailing list