+
contentContainerStart();
- echo "
\n";
+ echo "\n";
print "\n\n";
print " | \n";
print "".getMLText('name')." | \n";
diff --git a/views/bootstrap/class.FolderAccess.php b/views/bootstrap/class.FolderAccess.php
index 4a5f18b9d..bf3905d05 100644
--- a/views/bootstrap/class.FolderAccess.php
+++ b/views/bootstrap/class.FolderAccess.php
@@ -193,7 +193,7 @@ $(document).ready(function() {
$options[] = array(-1, getMLText('select_one'));
foreach ($allUsers as $currUser) {
if (!$currUser->isGuest())
- $options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()), ($currUser->getID()==$user->getID()), array(array('data-subtitle', htmlspecialchars($currUser->getFullName()))));
+ $options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()), false, array(array('data-subtitle', htmlspecialchars($currUser->getFullName()))));
}
$this->formField(
getMLText("user"),
diff --git a/views/bootstrap/class.Login.php b/views/bootstrap/class.Login.php
index 9eeb941d0..81fbcfcde 100644
--- a/views/bootstrap/class.Login.php
+++ b/views/bootstrap/class.Login.php
@@ -32,6 +32,7 @@ require_once("class.Bootstrap.php");
class SeedDMS_View_Login extends SeedDMS_Bootstrap_Style {
function js() { /* {{{ */
+ header('Content-Type: application/javascript; charset=UTF-8');
?>
document.form1.login.focus();
function checkForm()
diff --git a/views/bootstrap/class.OverrideContentStatus.php b/views/bootstrap/class.OverrideContentStatus.php
index 9ea9dfebd..d1a6a7aed 100644
--- a/views/bootstrap/class.OverrideContentStatus.php
+++ b/views/bootstrap/class.OverrideContentStatus.php
@@ -100,7 +100,7 @@ $(document).ready(function() {
$options[] = array('', '');
if ($overallStatus["status"] == S_OBSOLETE)
$options[] = array(S_RELEASED, getOverallStatusText(S_RELEASED));
- if ($overallStatus["status"] == S_RELEASED)
+ if ($overallStatus["status"] != S_OBSOLETE)
$options[] = array(S_OBSOLETE, getOverallStatusText(S_OBSOLETE));
if ($overallStatus["status"] != S_DRAFT)
$options[] = array(S_DRAFT, getOverallStatusText(S_DRAFT));
diff --git a/views/bootstrap/class.SubstituteUser.php b/views/bootstrap/class.SubstituteUser.php
index 584a721f9..7ac8a5f14 100644
--- a/views/bootstrap/class.SubstituteUser.php
+++ b/views/bootstrap/class.SubstituteUser.php
@@ -32,6 +32,16 @@ require_once("class.Bootstrap.php");
class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style {
function js() { /* {{{ */
+?>
+ $(document).ready(function(){
+ $("#myInput").on("keyup", function() {
+ var value = $(this).val().toLowerCase();
+ $("#myTable tbody tr").filter(function() {
+ $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
+ });
+ });
+ });
+contentHeading(getMLText("substitute_user"));
?>
-
+
+
| | | | |
diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php
index 6cdabba0f..dbe02e23b 100644
--- a/views/bootstrap/class.ViewDocument.php
+++ b/views/bootstrap/class.ViewDocument.php
@@ -461,6 +461,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
function show() { /* {{{ */
parent::show();
+
+ $this->callHook('preViewDocument');
+
$dms = $this->params['dms'];
$user = $this->params['user'];
$folder = $this->params['folder'];
diff --git a/views/bootstrap/class.ViewFolder.php b/views/bootstrap/class.ViewFolder.php
index c07c24a29..722b6799c 100644
--- a/views/bootstrap/class.ViewFolder.php
+++ b/views/bootstrap/class.ViewFolder.php
@@ -136,7 +136,7 @@ $('#loadmore').click(function(e) {
printNewTreeNavigationJs($folder->getID(), M_READ, 0, '', $expandFolderTree == 2, $orderby);
+ $this->printNewTreeNavigationJs($folder->getID(), M_READ, 0, '', ($expandFolderTree == 1) ? -1 : 3, $orderby);
if ($enableDropUpload && $folder->getAccessMode($user) >= M_READWRITE) {
echo "SeedDMSUpload.setUrl('../op/op.Ajax.php');";
@@ -283,7 +283,7 @@ $('#loadmore').click(function(e) {
* access expandFolderTree with $this->params because it can
* be changed by preContent hook.
*/
- $this->printNewTreeNavigationHtml($folderid, M_READ, 0, '', $this->params['expandFolderTree'], $orderby);
+ $this->printNewTreeNavigationHtml($folderid, M_READ, 0, '', ($this->params['expandFolderTree'] == 1) ? -1 : 3, $orderby);
$this->contentContainerEnd();
} else {
$this->contentHeading("", true);