Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
0eb59c20
Commit
0eb59c20
authored
Jun 01, 2012
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#1415828
by BJ___, patrickd, nod_, damiankloip: made Tabledrag a library.
parent
bd408550
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
core/includes/common.inc
core/includes/common.inc
+1
-2
core/modules/system/system.module
core/modules/system/system.module
+12
-0
No files found.
core/includes/common.inc
View file @
0eb59c20
...
...
@@ -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
;
}
...
...
core/modules/system/system.module
View file @
0eb59c20
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment