Changeset 3992:716640bdb480
- Timestamp:
- 06/28/19 13:42:16 (6 years ago)
- Branch:
- default
- Files:
-
- 2 edited
-
admin/js/_posts_actions.js (modified) (2 diffs)
-
inc/admin/actions/class.dcactionposts.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_posts_actions.js
r3880 r3992 1 /*global $, dotclear, usersList*/1 /*global $, dotclear, getData */ 2 2 'use strict'; 3 3 … … 5 5 const new_auth_id = $('#new_auth_id'); 6 6 if (new_auth_id.length) { 7 const usersList = getData('users_list'); 7 8 new_auth_id.autocomplete(usersList, { 8 9 delay: 1000, -
inc/admin/actions/class.dcactionposts.php
r3874 r3992 347 347 $ap->redirect(true); 348 348 } else { 349 $usersList = '';349 $usersList = []; 350 350 if ($core->auth->check('admin', $core->blog->id)) { 351 351 $params = [ … … 359 359 $rsStatic->lexicalSort('user_id'); 360 360 while ($rsStatic->fetch()) { 361 $usersList .= ($usersList != '' ? ',' : '') . '"' . $rsStatic->user_id . '"';361 $usersList[] = $rsStatic->user_id; 362 362 } 363 363 } … … 369 369 __('Change author for this selection') => '']), 370 370 dcPage::jsLoad('js/jquery/jquery.autocomplete.js') . 371 '<script type="text/javascript">' . "\n" . 372 'usersList = [' . $usersList . ']' . "\n" . 373 "</script>\n" 371 dcPage::jsJson('users_list', $usersList) 374 372 ); 375 373
Note: See TracChangeset
for help on using the changeset viewer.
