[LON-CAPA-cvs] cvs: loncom /publisher lonpubdir.pm

banghart lon-capa-cvs@mail.lon-capa.org
Wed, 22 Nov 2006 20:50:44 -0000


banghart		Wed Nov 22 15:50:44 2006 EDT

  Modified files:              
    /loncom/publisher	lonpubdir.pm 
  Log:
  	Don't bother renaming to the same name. Jeesh.
  
  
Index: loncom/publisher/lonpubdir.pm
diff -u loncom/publisher/lonpubdir.pm:1.96 loncom/publisher/lonpubdir.pm:1.97
--- loncom/publisher/lonpubdir.pm:1.96	Wed Nov 22 15:16:16 2006
+++ loncom/publisher/lonpubdir.pm	Wed Nov 22 15:50:44 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Construction Space Directory Lister
 #
-# $Id: lonpubdir.pm,v 1.96 2006/11/22 20:16:16 banghart Exp $
+# $Id: lonpubdir.pm,v 1.97 2006/11/22 20:50:44 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -311,7 +311,7 @@
     function changename(theform,activity) {
         var oldname=theform.dispfilename.value;
         var newname=prompt('New Name',oldname);
-        if (newname == "" || !newname)  {
+        if (newname == "" || !newname || newname == oldname)  {
             return
         }
         document.moveresource.newfilename.value = newname