ordering issue
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 13 May 2007 03:42:07 +0000 (03:42 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 13 May 2007 03:42:07 +0000 (03:42 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7281 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/reports/xul/source-setup.js

index 0de7407..4cf5222 100644 (file)
@@ -68,13 +68,14 @@ function loadIDL() {
                        populateSourcesMenu(
                                filterByAttributeNS( oilsIDL.getElementsByTagName('class'), rptNS, 'core', 'true' )
                        );
+
+                       var cgi = new CGI();
+                       var template_id = cgi.param('ct');
+                       if (template_id) loadTemplate(template_id);
                 }
         }
        req.send(null);
 
-       var cgi = new CGI();
-       var template_id = cgi.param('ct');
-       if (template_id) loadTemplate(template_id);
 }
 
 function getIDLClass (id) { return filterByAttribute( oilsIDL.getElementsByTagName('class'), 'id', id )[0] }