chmod patch

Anton Nekhoroshih anton@valuehost.ru
Thu, 23 Aug 2001 12:08:45 +0400


Hello All,

Please make this patch


Index: gollem/templates/manager/javascript.inc
===================================================================
RCS file: /cvs/horde/gollem/templates/manager/javascript.inc,v
retrieving revision 1.4
diff -u -c -r1.4 javascript.inc
*** gollem/templates/manager/javascript.inc     2001/04/29 18:02:26     1.4
--- gollem/templates/manager/javascript.inc     2001/08/22 06:56:18
***************
*** 46,51 ****
--- 46,53 ----
          renameItems();
      } else if (action == <?= DELETE_ITEMS ?>) {
          deleteItems();
+     } else if (action == <?= CHMOD_MODIFY ?>) {
+         chmodItems();
      }
  }
  
***************
*** 102,107 ****
--- 104,121 ----
  {
      if (window.confirm("<?= _("The following items will be permenantly deleted: ") ?>\n" + getSelected() + "\n<?= _("Are you
sure?") ?>")) {
          document.manager.actionID.value = <?= DELETE_ITEMS ?>;
          document.manager.submit();
+     }
+ }
+
+ function chmodItems()
+ {
+ 
+     var chmod = window.prompt("<?= _("Please enter the mode in numeric format:") ?>\n", "");
+     
+     if (chmod != null && chmod != '') {
+         document.manager.chmod.value = chmod;
+         document.manager.actionID.value = <?= CHMOD_MODIFY ?>;
          document.manager.submit();
      }
  }  

-- 
Best regards,
 Anton                          mailto:anton@valuehost.ru