diff --git a/modalframe.info b/modalframe.info index b1b4ead..51e05c9 100644 --- a/modalframe.info +++ b/modalframe.info @@ -1,5 +1,4 @@ name = Modal Frame API description = Provides an API to render an iframe within a modal dialog based on the jQuery UI Dialog plugin. package = Modal frame -dependencies[] = jquery_ui -core = 6.x +core = 7.x diff --git a/modalframe.module b/modalframe.module index 3f044c6..a13a37e 100644 --- a/modalframe.module +++ b/modalframe.module @@ -217,7 +217,8 @@ function modalframe_parent_js() { } $processed = TRUE; - jquery_ui_add(array('ui.dialog', 'ui.draggable')); + drupal_add_library('system', 'ui.dialog'); + drupal_add_library('system', 'ui.draggable'); $module_path = drupal_get_path('module', 'modalframe'); drupal_add_css($module_path .'/css/modalframe.parent.css'); drupal_add_js($module_path .'/js/parent.js'); @@ -240,10 +241,6 @@ function modalframe_child_js() { // is something child windows don't need. module_invoke_all('suppress'); - // This is required to get access to jQuery UI extensions to jQuery itself, - // such as the ':focusable' and ':tabbable' selectors. - jquery_ui_add(array('ui.core')); - // Add javascript and stylesheets to the child page. $module_path = drupal_get_path('module', 'modalframe'); drupal_add_css($module_path .'/css/modalframe.child.css');