Commit 0eb59c20 authored by Dries's avatar Dries

- Patch #1415828 by BJ___, patrickd, nod_, damiankloip: made Tabledrag a library.

parent bd408550
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment