Dotclear


Ignore:
Timestamp:
09/29/13 23:10:54 (12 years ago)
Author:
Denis Jean-Chirstian <contact@…>
Branch:
dcRepo
Message:

Add rest service to get more module info on modules list through ajax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/plugins.php

    r2150 r2156  
    104104     dcPage::jsLoad('js/_plugins.js'). 
    105105     dcPage::jsPageTabs(). 
     106 
     107     # --BEHAVIOR-- pluginsToolsHeaders 
    106108     $core->callBehavior('pluginsToolsHeaders', $core), 
     109 
    107110     dcPage::breadcrumb( 
    108111          array( 
     
    155158 
    156159          $list 
     160               ->newList('plugin-update') 
    157161               ->setModules($modules) 
    158162               ->setPageTab('update') 
    159163               ->displayModulesList( 
    160                     /*cols */ array('icon', 'name', 'version', 'current_version', 'desc'), 
     164                    /*cols */      array('icon', 'name', 'version', 'current_version', 'desc'), 
    161165                    /* actions */  array('update') 
    162166               ); 
     
    179183 
    180184     $list 
     185          ->newList('plugin-activate') 
    181186          ->setModules($modules) 
    182187          ->setPageTab('plugins') 
    183188          ->displayModulesList( 
    184                /* cols */          array('icon', 'name', 'config', 'version', 'desc', 'distrib'), 
     189               /* cols */          array('expander', 'icon', 'name', 'config', 'version', 'desc', 'distrib'), 
    185190               /* actions */  array('deactivate', 'delete') 
    186191          ); 
     
    196201 
    197202     $list 
     203          ->newList('plugin-deactivate') 
    198204          ->setModules($modules) 
    199205          ->setPageTab('plugins') 
     
    222228 
    223229     $list 
     230          ->newList('plugin-new') 
    224231          ->setModules($modules) 
    225232          ->setPageTab('new') 
     
    227234          ->displayNavMenu() 
    228235          ->displayModulesList( 
    229                /* cols */          array('name', 'version', 'desc'), 
     236               /* cols */          array('expander', 'name', 'version', 'desc'), 
    230237               /* actions */  array('install'), 
    231238               /* nav limit */     true 
Note: See TracChangeset for help on using the changeset viewer.

Sites map