avoid auto adding a new distrib formula row with every rendering of the li details...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Oct 2009 21:20:48 +0000 (21:20 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Oct 2009 21:20:48 +0000 (21:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14404 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/acq/common/li_table.js

index 53e6fa3..940dcf6 100644 (file)
@@ -506,7 +506,6 @@ function AcqLiTable() {
 
         this._fetchDistribFormulas(
             function() {
-                self._addDistribFormulaRow();
                 openils.acq.Lineitem.fetchAttrDefs(
                     function() { 
                         self._fetchLineitem(liId, function(li){self._drawCopies(li);}); 
@@ -634,6 +633,7 @@ function AcqLiTable() {
                         self.distribFormulaStore = 
                             new dojo.data.ItemFileReadStore(
                                 {data:acqdf.toStoreData(self.distribForms)});
+                        self._addDistribFormulaRow();
                         onload();
                     }
                 }