Issue #1933426 follow-up by dawehner: Fixed documentation around drupal_add_js -> drupal_add_library change.

8.0.x
webchick 2013-08-06 23:41:55 -07:00
parent 193f1f5c38
commit b7d3774c6e
1 changed files with 1 additions and 2 deletions

View File

@ -485,8 +485,6 @@ function views_preprocess_html(&$variables) {
if ($key !== FALSE) {
unset($variables['attributes']['class'][$key]);
$variables['attributes']['data-views-page-contextual-id'] = $variables['title_suffix']['contextual_links']['#id'];
// Add the JavaScript, with a group and weight such that it will run
// before modules/contextual/contextual.js.
drupal_add_library('views', 'views.contextual-links');
}
}
@ -821,6 +819,7 @@ function views_library_info() {
'title' => 'Views Contextual links',
'version' => VERSION,
'js' => array(
// Set to -10 to move it before the contextual links javascript file.
"$path/js/views-contextual.js" => array('group' => JS_LIBRARY, 'weight' => -10),
),
'dependencies' => array(