Commit 4e73b5fc authored by tim.plunkett's avatar tim.plunkett Committed by tim.plunkett
Browse files

Issue #1659520 by tim.plunkett: Update jQuery library calls.

parent 55c0ee7b
......@@ -1009,8 +1009,8 @@ function views_ui_edit_form($form, &$form_state, $view, $display_id = NULL) {
// results in making it unserializable due to PDO limitations.
$form_state['view'] = clone($view);
$form['#attached']['library'][] = array('system', 'ui.tabs');
$form['#attached']['library'][] = array('system', 'ui.dialog');
$form['#attached']['library'][] = array('system', 'jquery.ui.tabs');
$form['#attached']['library'][] = array('system', 'jquery.ui.dialog');
$form['#attached']['library'][] = array('system', 'drupal.ajax');
$form['#attached']['library'][] = array('system', 'jquery.form');
$form['#attached']['library'][] = array('system', 'drupal.states');
......
......@@ -825,9 +825,9 @@ function _views_ui_get_displays_list($view) {
*/
function views_ui_library_alter(&$libraries, $module) {
if ($module == 'system' && isset($libraries['ui.dialog'])) {
if (version_compare($libraries['ui.dialog']['version'], '1.7.2', '>=')) {
$libraries['ui.dialog']['js'][drupal_get_path('module', 'views') . '/js/jquery.ui.dialog.patch.js'] = array();
if ($module == 'system' && isset($libraries['jquery.ui.dialog'])) {
if (version_compare($libraries['jquery.ui.dialog']['version'], '1.7.2', '>=')) {
$libraries['jquery.ui.dialog']['js'][drupal_get_path('module', 'views') . '/js/jquery.ui.dialog.patch.js'] = array();
}
}
}
......
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