- Patch #1415828 by BJ___, patrickd, nod_, damiankloip: made Tabledrag a library.
parent
bd40855052
commit
0eb59c20c5
|
|
@ -4901,8 +4901,7 @@ function drupal_add_tabledrag($table_id, $action, $relationship, $group, $subgro
|
|||
// Add the table drag JavaScript to the page before the module JavaScript
|
||||
// to ensure that table drag behaviors are registered before any module
|
||||
// uses it.
|
||||
drupal_add_library('system', 'jquery.cookie');
|
||||
drupal_add_js('core/misc/tabledrag.js', array('weight' => -1));
|
||||
drupal_add_library('system', 'drupal.tabledrag');
|
||||
$js_added = TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1218,6 +1218,18 @@ function system_library_info() {
|
|||
),
|
||||
);
|
||||
|
||||
// Drupal's tabledrag library.
|
||||
$libraries['drupal.tabledrag'] = array(
|
||||
'title' => 'Drupal tabledrag',
|
||||
'version' => VERSION,
|
||||
'js' => array(
|
||||
'core/misc/tabledrag.js' => array('group' => JS_LIBRARY, 'weight' => -1),
|
||||
),
|
||||
'dependencies' => array(
|
||||
array('system', 'jquery.cookie'),
|
||||
),
|
||||
);
|
||||
|
||||
// Drupal's collapsible fieldset.
|
||||
$libraries['drupal.collapse'] = array(
|
||||
'title' => 'Drupal collapsible fieldset',
|
||||
|
|
|
|||
Loading…
Reference in New Issue