New 'libraries' folder in root instalation directory
This commit is contained in:
parent
05b6a91b0c
commit
006992b900
2267 changed files with 50 additions and 65 deletions
|
@ -31,19 +31,19 @@ To submit bug reports and feature suggestions, or to track changes:
|
|||
|
||||
* Put the downloaded archive into the directory:
|
||||
|
||||
/sites/all/libraries/jquery.ui-1.6.zip
|
||||
/libraries/jquery.ui-1.6.zip
|
||||
|
||||
* Extract the archive. This will create the following sub-directory:
|
||||
|
||||
/sites/all/libraries/jquery.ui-1.6/
|
||||
/libraries/jquery.ui-1.6/
|
||||
|
||||
* Rename the sub-directory into "jquery.ui":
|
||||
|
||||
/sites/all/libraries/jquery.ui/
|
||||
/libraries/jquery.ui/
|
||||
|
||||
so the actual jQuery UI JavaScript files are located in:
|
||||
|
||||
/sites/all/libraries/jquery.ui/ui/*.js
|
||||
/libraries/jquery.ui/ui/*.js
|
||||
|
||||
* Enable the module at Administer >> Site building >> Modules.
|
||||
|
||||
|
@ -64,19 +64,19 @@ to jQuery UI 1.7, you can get around this by doing the following:
|
|||
|
||||
* Put the downloaded archive into the directory:
|
||||
|
||||
/sites/all/libraries/jquery.ui-1.7.zip
|
||||
/libraries/jquery.ui-1.7.zip
|
||||
|
||||
* Extract the archive. This will create the following sub-directory:
|
||||
|
||||
/sites/all/libraries/jquery.ui-1.7/
|
||||
/libraries/jquery.ui-1.7/
|
||||
|
||||
* Rename the sub-directory into "jquery.ui":
|
||||
|
||||
/sites/all/libraries/jquery.ui/
|
||||
/libraries/jquery.ui/
|
||||
|
||||
so the actual jQuery UI JavaScript files are located in:
|
||||
|
||||
/sites/all/libraries/jquery.ui/ui/*.js
|
||||
/libraries/jquery.ui/ui/*.js
|
||||
|
||||
* Enable the module at Administer >> Site building >> Modules.
|
||||
|
||||
|
@ -115,4 +115,3 @@ Current maintainers:
|
|||
* Angela Byron (webchick)
|
||||
* Addison Berry (add1sun)
|
||||
* Daniel F. Kudwien (sun) - http://drupal.org/user/54136
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ function jquery_ui_requirements($phase) {
|
|||
$requirements['jquery_ui']['description'] = $t('The <a href="@jqueryui">jQuery UI</a> plugin is missing. <a href="@download">Download</a> and extract it into the <code>@directory</code> directory. Rename the extracted folder to <code>@library-folder</code>.', array(
|
||||
'@jqueryui' => 'http://jqueryui.com',
|
||||
'@download' => 'http://code.google.com/p/jquery-ui/downloads/list?q=1.6',
|
||||
'@directory' => 'sites/all/libraries',
|
||||
'@directory' => 'libraries',
|
||||
'@library-folder' => 'jquery.ui',
|
||||
));
|
||||
$requirements['jquery_ui']['severity'] = REQUIREMENT_ERROR;
|
||||
|
@ -48,4 +48,3 @@ function jquery_ui_requirements($phase) {
|
|||
function jquery_ui_uninstall() {
|
||||
variable_del('jquery_ui_compression_type');
|
||||
}
|
||||
|
||||
|
|
|
@ -91,9 +91,9 @@ function jquery_ui_get_path() {
|
|||
$path = FALSE;
|
||||
}
|
||||
}
|
||||
// Manually check sites/all/libraries in case Libraries API is not available.
|
||||
elseif (file_exists('./sites/all/libraries/jquery.ui')) {
|
||||
$path = 'sites/all/libraries/jquery.ui';
|
||||
// Manually check libraries in case Libraries API is not available.
|
||||
elseif (file_exists('./libraries/jquery.ui')) {
|
||||
$path = 'libraries/jquery.ui';
|
||||
}
|
||||
|
||||
// Check the module directory for backwards compatibility if other methods
|
||||
|
@ -133,4 +133,3 @@ function jquery_ui_get_version() {
|
|||
|
||||
return $version;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue