Dotclear


Ignore:
Timestamp:
10/08/18 17:03:53 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add spellcheck="true" attribute on input/textarea

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_pref.php

    r3874 r3898  
    357357        [ 
    358358            'default'    => html::escapeHTML($blog_name), 
    359             'extra_html' => 'required placeholder="' . __('Blog name') . '"' 
     359            'extra_html' => 'required placeholder="' . __('Blog name') . ' lang="' . $blog_settings->system->lang . 
     360                '" spellcheck="true"' 
    360361        ] 
    361362    ) . '</p>'; 
     
    363364    echo 
    364365    '<p class="area"><label for="blog_desc">' . __('Blog description:') . '</label>' . 
    365     form::textarea('blog_desc', 60, 5, html::escapeHTML($blog_desc)) . '</p>'; 
     366    form::textarea('blog_desc', 60, 5, 
     367        [ 
     368            'default'    => html::escapeHTML($blog_desc), 
     369            'extra_html' => 'lang="' . $blog_settings->system->lang . '" spellcheck="true"' 
     370        ]) . '</p>'; 
    366371 
    367372    if ($core->auth->isSuperAdmin()) { 
     
    400405 
    401406    '<p><label for="copyright_notice">' . __('Copyright notice:') . '</label>' . 
    402     form::field('copyright_notice', 30, 255, html::escapeHTML($blog_settings->system->copyright_notice)) . 
     407    form::field('copyright_notice', 30, 255, 
     408        [ 
     409            'default'    => html::escapeHTML($blog_settings->system->copyright_notice), 
     410            'extra_html' => 'lang="' . $blog_settings->system->lang . '" spellcheck="true"' 
     411        ]) . 
    403412        '</p>' . 
    404413 
     
    616625 
    617626    '</div>' . 
    618     '</div>'; 
     627        '</div>'; 
    619628 
    620629    echo '<div id="advanced-pref"><h3>' . __('Advanced parameters') . '</h3>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map