diff --git a/views/bootstrap/class.FolderAccess.php b/views/bootstrap/class.FolderAccess.php
index 5253a644d..bcbee1872 100644
--- a/views/bootstrap/class.FolderAccess.php
+++ b/views/bootstrap/class.FolderAccess.php
@@ -39,21 +39,9 @@ class SeedDMS_View_FolderAccess extends SeedDMS_Bootstrap_Style {
print "\n";
} /* }}} */
- function show() { /* {{{ */
- $dms = $this->params['dms'];
- $user = $this->params['user'];
- $folder = $this->params['folder'];
- $allUsers = $this->params['allusers'];
- $allGroups = $this->params['allgroups'];
- $rootfolderid = $this->params['rootfolderid'];
-
- $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))));
- $this->globalNavigation($folder);
- $this->contentStart();
- $this->pageNavigation($this->getFolderPathHTML($folder, true), "view_folder", $folder);
+ function js() { /* {{{ */
+ header('Content-Type: application/javascript; charset=UTF-8');
?>
-
-
-
+$(document).ready(function() {
+ $('body').on('submit', '#form1', function(ev){
+ if(checkForm()) return;
+ event.preventDefault();
+ });
+});
params['dms'];
+ $user = $this->params['user'];
+ $folder = $this->params['folder'];
+ $allUsers = $this->params['allusers'];
+ $allGroups = $this->params['allgroups'];
+ $rootfolderid = $this->params['rootfolderid'];
+
+ $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))));
+ $this->globalNavigation($folder);
+ $this->contentStart();
+ $this->pageNavigation($this->getFolderPathHTML($folder, true), "view_folder", $folder);
+
$this->contentHeading(getMLText("edit_folder_access"));
$this->contentContainerStart();
@@ -227,7 +234,7 @@ function checkForm()
print "
";
}
?>
-