[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 12 Oct 2004 22:11:26 -0000


albertel		Tue Oct 12 18:11:26 2004 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - since we remeber the omit/only/titleelements in the disck cache in lonindexer, we need to send blanks along in case there were values for the form parms last time we loaded up lonindexer (BUG#3534)
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.216 loncom/interface/loncommon.pm:1.217
--- loncom/interface/loncommon.pm:1.216	Wed Oct  6 14:54:32 2004
+++ loncom/interface/loncommon.pm	Tue Oct 12 18:11:26 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.216 2004/10/06 18:54:32 albertel Exp $
+# $Id: loncommon.pm,v 1.217 2004/10/12 22:11:26 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -265,16 +265,22 @@
         url += 'form=' + formname + '&';
         if (only != null) {
             url += 'only=' + only + '&';
-        } 
+        } else {
+            url += 'only=&';
+	}
         if (omit != null) {
             url += 'omit=' + omit + '&';
-        }
+        } else {
+            url += 'omit=&';
+	}
         if (titleelement != null) {
             url += 'titleelement=' + titleelement + '&';
-        }
+        } else {
+	    url += 'titleelement=&';
+	}
         url += 'element=' + elementname + '';
         var title = 'Browser';
-        var options = 'scrollbars=1,resizable=1,menubar=0';
+        var options = 'scrollbars=1,resizable=1,menubar=1,location=1';
         options += ',width=700,height=600';
         editbrowser = open(url,title,options,'1');
         editbrowser.focus();
@@ -290,7 +296,9 @@
         url += 'form=' + formname + '&';
         if (titleelement != null) {
             url += 'titleelement=' + titleelement + '&';
-        }
+        } else {
+	    url += 'titleelement=&';
+	}
         url += 'element=' + elementname + '';
         var title = 'Search';
         var options = 'scrollbars=1,resizable=1,menubar=0';