Dotclear


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

Better this way and it works on every modern browsers (I hope) \o/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r3906 r3908  
    152152if (!$core->auth->user_prefs->accessibility->nodragdrop) { 
    153153    $dragndrop = 
    154         '<script type="text/javascript">' . "\n" . 
    155             dcPage::jsVar('dotclear.dragndrop_off', __('Dashboard area\'s drag and drop is disabled')) . "\n" . 
    156             dcPage::jsVar('dotclear.dragndrop_on', __('Dashboard area\'s drag and drop is enabled')) . "\n" . 
    157         "</script>\n". 
    158         '<input type="checkbox" id="dragndrop" title="' . __('Dashboard area\'s drag and drop is disabled') . '" />'; 
     154    '<script type="text/javascript">' . "\n" . 
     155    dcPage::jsVar('dotclear.dragndrop_off', __('Dashboard area\'s drag and drop is disabled')) . "\n" . 
     156    dcPage::jsVar('dotclear.dragndrop_on', __('Dashboard area\'s drag and drop is enabled')) . "\n" . 
     157    "</script>\n" . 
     158    '<input type="checkbox" id="dragndrop" class="sr-only" title="' . 
     159        __('Dashboard area\'s drag and drop is disabled') . '" />' . 
     160    '<label for="dragndrop">' . 
     161    '<svg aria-hidden="true" focusable="false" class="dragndrop-svg">' . 
     162    '<use xlink:href="images/dragndrop.svg#mask"></use>' . 
     163    '</svg>' . 
     164    '<span id="dragndrop-label" class="sr-only">' . __('Dashboard area\'s drag and drop is disabled') . '</span>' . 
     165    '</label>'; 
    159166} 
    160167 
Note: See TracChangeset for help on using the changeset viewer.

Sites map