Changeset 3906:67f6a46a8802 for admin/index.php
- Timestamp:
- 10/23/18 12:10:59 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r3874 r3906 145 145 } 146 146 } 147 } 148 149 # Dashboard drag'n'drop switch for its elements 150 $core->auth->user_prefs->addWorkspace('accessibility'); 151 $dragndrop = ''; 152 if (!$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') . '" />'; 147 159 } 148 160 … … 398 410 $dashboardMain = $composeItems($main_order, $__dashboard_main, true); 399 411 400 # Dashboard elements 401 echo '<div id="dashboard-main">' . $dashboardMain . '</div>'; 412 echo $dragndrop . '<div id="dashboard-main">' . $dashboardMain . '</div>'; 402 413 403 414 dcPage::helpBlock('core_dashboard');
Note: See TracChangeset
for help on using the changeset viewer.