diff options
| author | Nathan Kinkade <nkinkade@nkinka.de> | 2010-12-06 16:14:26 +0000 | 
|---|---|---|
| committer | Nathan Kinkade <nkinkade@nkinka.de> | 2010-12-06 16:14:26 +0000 | 
| commit | cf1965957c48b1c88a3913f8167688d03d191cec (patch) | |
| tree | 9da9e719c68f4428771c9b70389b93f7a1bafd26 /modules/gallery/views/admin_advanced_settings.html.php | |
| parent | 1659e487a26ef0460926376b7b8b40aaba0c0577 (diff) | |
| parent | c3ef8921260db8e39b6d2a7b4708e3d19f35f8b5 (diff) | |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/views/admin_advanced_settings.html.php')
| -rw-r--r-- | modules/gallery/views/admin_advanced_settings.html.php | 21 | 
1 files changed, 20 insertions, 1 deletions
| diff --git a/modules/gallery/views/admin_advanced_settings.html.php b/modules/gallery/views/admin_advanced_settings.html.php index edaeecaf..d4f646f8 100644 --- a/modules/gallery/views/admin_advanced_settings.html.php +++ b/modules/gallery/views/admin_advanced_settings.html.php @@ -9,6 +9,7 @@      <li class="g-warning"><?= t("Change these values at your own risk!") ?></li>    </ul> +  <?= t("Filter:") ?> <input id="g-admin-advanced-settings-filter" type="text"></input>    <div class="g-block-content">      <table>        <tr> @@ -17,7 +18,7 @@          <th> <?= t("Value") ?></th>        </tr>        <? foreach ($vars as $var): ?> -      <tr class="<?= text::alternate("g-odd", "g-even") ?>"> +      <tr class="setting-row <?= text::alternate("g-odd", "g-even") ?>">          <td> <?= $var->module_name ?> </td>          <td> <?= html::clean($var->name) ?> </td>          <td> @@ -35,4 +36,22 @@        <? endforeach ?>      </table>    </div> + +  <script> +    $(document).ready(function() { +      $("#g-admin-advanced-settings-filter").keyup(function() { +        var filter = $(this).attr("value"); +        if (filter) { +          $("tr.setting-row").fadeOut("fast"); +          $("tr.setting-row td:contains(" + filter + "), tr.setting-row td a:contains(" + filter + ")").each(function() { +            if ($(this).children().length < 1) { +              $(this).closest("tr").stop().show(); +            } +          }); +        } else { +          $("tr.setting-row").show(); +        } +      }); +    }); +  </script>  </div> | 
