Dotclear


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

Drag'n'drop of dashboard areas is no more activated by default after 5 seconds. The user must activate (new button) it before moving them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r3874 r3906  
    145145        } 
    146146    } 
     147} 
     148 
     149# Dashboard drag'n'drop switch for its elements 
     150$core->auth->user_prefs->addWorkspace('accessibility'); 
     151$dragndrop = ''; 
     152if (!$core->auth->user_prefs->accessibility->nodragdrop) { 
     153    $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') . '" />'; 
    147159} 
    148160 
     
    398410$dashboardMain = $composeItems($main_order, $__dashboard_main, true); 
    399411 
    400 # Dashboard elements 
    401 echo '<div id="dashboard-main">' . $dashboardMain . '</div>'; 
     412echo $dragndrop . '<div id="dashboard-main">' . $dashboardMain . '</div>'; 
    402413 
    403414dcPage::helpBlock('core_dashboard'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map