Dotclear

Changeset 1089:049be1a46863 for plugins


Ignore:
Timestamp:
12/19/12 11:57:54 (13 years ago)
Author:
JcDenis
Branch:
twig
Message:
  • Better way to fill in complex page title
  • Group all types of messages
  • Fix aboutConfig form submit
  • Clean up uggly tabs on inline doc
Location:
plugins/aboutConfig
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/aboutConfig/admtpl/index.html.twig

    r1070 r1089  
    4242     </tbody></table> 
    4343    {% endfor %} 
    44      <p>{{ form_field('local_submit') }} </p> 
     44     <p>{{ form_field('local_submit') }}</p> 
    4545    {% endform %} 
    4646     </div> 
     
    7575     </tbody></table> 
    7676    {% endfor %} 
    77      <p>{{ form_field('global_submit') }} </p> 
     77     <p>{{ form_field('global_submit') }}</p> 
    7878    {% endform %} 
    7979  </div> 
  • plugins/aboutConfig/index.php

    r1070 r1089  
    137137# Commons 
    138138if (!empty($_GET['upd'])) { 
    139      $_ctx->setMessage(__('Configuration successfully updated')); 
     139     $_ctx->setAlert(__('Configuration successfully updated')); 
    140140} 
    141141if (!empty($_GET['upda'])) { 
    142      $_ctx->setMessage(__('Settings definition successfully updated')); 
     142     $_ctx->setAlert(__('Settings definition successfully updated')); 
    143143} 
    144144$_ctx->default_tab = !empty($_GET['part']) && $_GET['part'] == 'global' ? 'global' : 'local'; 
    145 $_ctx->setPageTitle('about:config'); 
     145$_ctx->fillPageTitle('about:config'); 
    146146$core->tpl->display('@aboutConfig/index.html.twig'); 
    147147?> 
  • plugins/aboutConfig/js/aboutConfig.js

    r1070 r1089  
    11$(function() { 
    2      $("#global_submit").hide(); 
    3      $("#local_submit").hide(); 
     2     $("#global_nav_submit").hide(); 
     3     $("#local_nav_submit").hide(); 
    44     $("#global_nav").change(function() { 
    55          window.location = $("#global_nav option:selected").val(); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map