Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Whitescreen" when using the filebrowser in directories which are not empty #402

Closed
kienanstewart opened this issue Jan 14, 2020 · 3 comments
Assignees
Labels

Comments

@kienanstewart
Copy link
Contributor

There seems to be a problem with the filebrowser, where are whitescreen is shown when navigating to directories which are not empty.

To reproduce:

  1. install alternc
  2. login
  3. click on filebrowser in the left hand side menu

The page will load (and in fact, the interface will be briefly visible), but then it's hidden underneath something else.

@kienanstewart
Copy link
Contributor Author

kienanstewart commented Jan 14, 2020

I've worked around this issue temporarily by deactivating some of the on-load javascript:

diff --git a/bureau/admin/bro_main.php b/bureau/admin/bro_main.php
index afad4b66..53b01b87 100755
--- a/bureau/admin/bro_main.php
+++ b/bureau/admin/bro_main.php
@@ -682,6 +682,7 @@ else {
 </td></tr></table>
 
 <script type="text/javascript">
+/*
 $(document).ready(function() {
   $("#tab_files_w_details").tablesorter({
     textExtraction: function(node) {
@@ -693,6 +694,7 @@ $(document).ready(function() {
     } 
    });
 }); 
+ */
 </script>
 
 <?php include_once("foot.php"); ?>

I'm not yet sure of the actual cause of the problem.

@ulvida
Copy link
Contributor

ulvida commented Jan 28, 2020

This problem only happens with debian buster, not with stretch.
By the way, its not clear neither what does the javascript code you commented.

@albancrommer albancrommer self-assigned this Jun 5, 2020
@kienanstewart kienanstewart modified the milestones: 99.99 FUTURE, 3.5.0rc2 Jun 8, 2020
@albancrommer
Copy link
Contributor

I have confirmed that rolling back the package libjs-jquery-tablesorter to stretch version is a dirty way to fix the problem.

Yet the plugin is working well in other pages, so it has to be something with the code

This one page and table has a javascript script generating the "Check All" button located in the THEAD's first TH :

          <tr><th>
          <script type="text/javascript">
          <!--
          document.write("<input type=\"checkbox\" id=\"checkall\" value=\"1\" class=\"inb\" onclick=\"CheckAll();\" />");
        //  -->
        </script>
          </th>

This causes the plugin to erase a page and fill it with only that checkbox...

The fix is simple: add the input in a plain and simple way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants