Changeset 2816
- Timestamp:
- 11/15/08 00:51:32 (8 weeks ago)
- Location:
- trunk/htdocs/system/admin
- Files:
-
- 2 modified
-
js/admin.js (modified) (4 diffs)
-
plugins.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/admin/js/admin.js
r2805 r2816 231 231 var itemManage = { 232 232 init: function() { 233 if($('.page-users, .page-options, .page-user, .page-tags ').length != 0) {233 if($('.page-users, .page-options, .page-user, .page-tags, .page-plugins').length != 0) { 234 234 $("input#search").keyup(function (e) { 235 235 var str= $('input#search').val(); … … 297 297 simpleFilter: function( search ) { 298 298 search = $.trim( search.toLowerCase() ); 299 299 300 300 // cache search items on first call 301 301 if ( itemManage.searchCache.length == 0 ) { 302 itemManage.searchRows = $('li.item, .item. tag, div.settings');302 itemManage.searchRows = $('li.item, .item.plugin, .item.tag, div.settings, .container.plugins'); 303 303 itemManage.searchCache = itemManage.searchRows.map(function() { 304 304 return $(this).text().toLowerCase(); … … 314 314 }); 315 315 316 if($('div.settings').length != 0 ) {316 if($('div.settings').length != 0 || $('.container.plugins:visible').length > 1) { 317 317 $('select[name=navigationdropdown]').val('all'); 318 318 } … … 885 885 886 886 if ( selected == 'all' ) { 887 $('.settings ').removeClass('hidden');887 $('.settings, .container.plugins').removeClass('hidden'); 888 888 } 889 889 else { 890 $('.settings:not(#' + selected + ') ').addClass('hidden');891 $('.settings#' + selected ).removeClass('hidden');890 $('.settings:not(#' + selected + '), .container.plugins:not(#' + selected + ')').addClass('hidden'); 891 $('.settings#' + selected + ', .container.plugins#' + selected ).removeClass('hidden'); 892 892 } 893 893 } -
trunk/htdocs/system/admin/plugins.php
r2592 r2816 1 1 <?php include('header.php'); ?> 2 3 <div class="container navigation"> 4 <span class="pct40"> 5 <select name="navigationdropdown" onchange="navigationDropdown.filter();" tabindex="1"> 6 <option value="all"><?php _e('All plugins'); ?></option> 7 <?php if ( count($active_plugins) > 0 ): ?> 8 <option value="activeplugins">Active Plugins</option> 9 <?php endif; ?> 10 <?php if ( count($inactive_plugins) > 0 ): ?> 11 <option value="inactiveplugins">Inactive Plugins</option> 12 <?php endif; ?> 13 </select> 14 </span> 15 <span class="or pct20"> 16 <?php _e('or'); ?> 17 </span> 18 <span class="pct40"> 19 <input type="search" id="search" placeholder="<?php _e('search settings'); ?>" autosave="habarisettings" results="10" tabindex="2"> 20 </span> 21 </div> 2 22 3 23 <?php if ( count($active_plugins) > 0 ): ?> 4 24 5 <div class="container plugins activeplugins" >25 <div class="container plugins activeplugins" id="activeplugins"> 6 26 7 27 <h2><?php _e('Active Plugins'); ?></h2> 8 28 9 29 <?php foreach($active_plugins as $plugin) { if($plugin['debug']) { ?> 10 <div class="item clear">30 <div class="item plugin clear"> 11 31 <div class="head"> 12 32 <p><?php printf( _t('The plugin file %s had syntax errors and could not load.'), $plugin['file'] ); ?></p> … … 20 40 <?php } else { ?> 21 41 22 <div class="item clear" id="plugin_<?php echo $plugin['plugin_id']; ?>">42 <div class="item plugin clear" id="plugin_<?php echo $plugin['plugin_id']; ?>"> 23 43 <div class="head"> 24 44 <a href="<?php echo $plugin['info']->url; ?>" class="plugin"><?php echo $plugin['info']->name; ?> <span class="version"><?php echo $plugin['info']->version; ?></span></a> <span class="dim"><?php _e('by'); ?></span> <?php echo empty( $plugin['info']->authorurl ) ? $plugin['info']->author : '<a href="' . $plugin['info']->authorurl . '">' . $plugin['info']->author . '</a>'; ?> … … 72 92 73 93 <?php if ( count($inactive_plugins) > 0 ): ?> 74 <div class="container plugins inactiveplugins" >94 <div class="container plugins inactiveplugins" id="inactiveplugins"> 75 95 76 96 <h2><?php _e('Inactive Plugins'); ?></h2> 77 97 78 98 <?php foreach($inactive_plugins as $plugin) { if($plugin['debug']) { ?> 79 <div class="item clear">99 <div class="item plugin clear"> 80 100 <div class="head"> 81 101 <p><?php echo _t('The plugin file ') . $plugin['file'] . _t(' had syntax errors and could not load.'); ?></p> … … 88 108 <?php } else { ?> 89 109 90 <div class="item clear" id="plugin_<?php echo $plugin['plugin_id']; ?>">110 <div class="item plugin clear" id="plugin_<?php echo $plugin['plugin_id']; ?>"> 91 111 <div class="head"> 92 112 <a href="<?php echo $plugin['info']->url; ?>" class="plugin"><?php echo $plugin['info']->name; ?> <span class="version"><?php echo $plugin['info']->version; ?></span></a> <span class="dim"><?php _e('by'); ?></span> <?php echo empty( $plugin['info']->authorurl ) ? $plugin['info']->author : '<a href="' . $plugin['info']->authorurl . '">' . $plugin['info']->author . '</a>'; ?>
