Forráskód Böngészése

Instead of excluding one checkbox at a time, only check what should be checked
by Toggle All.

This will allow plugins to probably put some more checkboxes (like plugin
move_all_messages).

Of course, the Toggle All link needs to be restored at some point too. (When did
that go away in -DEVEL?)

Alexandros Vellis 21 éve
szülő
commit
614a01678a
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      functions/mailbox_display.php

+ 1 - 1
functions/mailbox_display.php

@@ -1156,7 +1156,7 @@ function get_selectall_link($start_msg, $sort, $mailbox) {
                 . "function " . $func_name . "() {\n"
                 . "  for (var i = 0; i < document." . $form_name . ".elements.length; i++) {\n"
                 . "    if(document." . $form_name . ".elements[i].type == 'checkbox' && "
-                . "document." . $form_name . ".elements[i].name != 'bypass_trash'){\n"
+                . "       document." . $form_name . ".elements[i].name.substring(0,3) == 'msg'){\n"
                 . "      document." . $form_name . ".elements[i].checked = "
                 . "        !(document." . $form_name . ".elements[i].checked);\n"
                 . "    }\n"