Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
57176f50
Commit
57176f50
authored
Mar 04, 2013
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1933426
by dawehner: Fixed contextual links on views.
parent
b9a4e9b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
core/modules/views/views.module
core/modules/views/views.module
+12
-1
No files found.
core/modules/views/views.module
View file @
57176f50
...
...
@@ -483,7 +483,7 @@ function views_preprocess_html(&$variables) {
unset
(
$variables
[
'attributes'
][
'class'
][
$key
]);
// Add the JavaScript, with a group and weight such that it will run
// before modules/contextual/contextual.js.
drupal_add_
js
(
drupal_get_path
(
'module'
,
'views'
)
.
'/js/
views
-
contextual
.js'
,
array
(
'group'
=>
JS_LIBRARY
,
'weight'
=>
-
1
)
);
drupal_add_
library
(
'views'
,
'
views
.
contextual
-links'
);
}
}
}
...
...
@@ -861,6 +861,17 @@ function views_library_info() {
array
(
'system'
,
'drupal.ajax'
),
),
);
$libraries
[
'views.contextual-links'
]
=
array
(
'title'
=>
'Views Contextual links'
,
'version'
=>
VERSION
,
'js'
=>
array
(
"
$path
/views-contextual.js"
=>
array
(
'group'
=>
JS_LIBRARY
,
'weight'
=>
-
10
),
),
'dependencies'
=>
array
(
array
(
'system'
,
'jquery'
),
array
(
'system'
,
'drupal'
),
),
);
return
$libraries
;
}
...
...
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