[open-ils-commits] r18443 - branches/rel_2_0/Open-ILS/web/js/ui/default/serial (senator)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Oct 21 15:33:51 EDT 2010


Author: senator
Date: 2010-10-21 15:33:46 -0400 (Thu, 21 Oct 2010)
New Revision: 18443

Modified:
   branches/rel_2_0/Open-ILS/web/js/ui/default/serial/subscription.js
Log:
Backport r18442 from trunk, autogrid cut-off tweak


Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/serial/subscription.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/serial/subscription.js	2010-10-21 19:33:09 UTC (rev 18442)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/serial/subscription.js	2010-10-21 19:33:46 UTC (rev 18443)
@@ -109,12 +109,13 @@
     if (!blob.id) return "";
     var link = "<a href='" +
         oilsBasePath + "/serial/list_stream?distribution=" + blob.id +
-        "'>" + (blob.label ? blob.label : "[None]") + "</a>" + /* XXX i18n */
-        "<span id='dist_link_" + blob.id + "'></span>";
+        "'>" + (blob.label ? blob.label : "[None]") + "</a>"; /* XXX i18n */
 
-    /* XXX kludgy kludge kludge */
-    setTimeout(function() { append_stream_count(blob.id); }, 200);
-
+    var sstr_list = pcrud.search(
+        "sstr",{"distribution":blob.id},{"id_list":true}
+    );
+    count = sstr_list ? sstr_list.length : 0;
+    link += "&nbsp;&nbsp; " + count + " stream(s)";
     return link;
 }
 



More information about the open-ils-commits mailing list