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

www lon-capa-cvs@mail.lon-capa.org
Thu, 29 May 2003 01:26:33 -0000


www		Wed May 28 21:26:33 2003 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  Bug #1525: Removal of NO RESOURCE does not ask for confirmation. Mechanism
  relies on "early out" in ||'ed conditions, probably good enough for this.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.56 loncom/interface/londocs.pm:1.57
--- loncom/interface/londocs.pm:1.56	Tue May 20 20:48:27 2003
+++ loncom/interface/londocs.pm	Wed May 28 21:26:33 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.56 2003/05/21 00:48:27 www Exp $
+# $Id: londocs.pm,v 1.57 2003/05/29 01:26:33 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -619,7 +619,7 @@
 }
 
 function removeres(folder,index,oldtitle) {
-    if (confirm('Remove "'+oldtitle+'"?')) {
+    if ((oldtitle=='NO RESOURCE') || (confirm('Remove "'+oldtitle+'"?'))) {
 	this.document.forms.renameform.cmd.value='del_'+index;
 	this.document.forms.renameform.folder.value=folder;
         this.document.forms.renameform.submit();