mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-09-05 16:51:21 +00:00
Initial commit
This commit is contained in:
commit
c5e731d8ae
2773 changed files with 600767 additions and 0 deletions
27
drupal7/web/misc/authorize.js
Normal file
27
drupal7/web/misc/authorize.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Conditionally hide or show the appropriate settings and saved defaults
|
||||
* on the file transfer connection settings form used by authorize.php.
|
||||
*/
|
||||
|
||||
(function ($) {
|
||||
|
||||
Drupal.behaviors.authorizeFileTransferForm = {
|
||||
attach: function(context) {
|
||||
$('#edit-connection-settings-authorize-filetransfer-default').change(function() {
|
||||
$('.filetransfer').hide().filter('.filetransfer-' + $(this).val()).show();
|
||||
});
|
||||
$('.filetransfer').hide().filter('.filetransfer-' + $('#edit-connection-settings-authorize-filetransfer-default').val()).show();
|
||||
|
||||
// Removes the float on the select box (used for non-JS interface).
|
||||
if ($('.connection-settings-update-filetransfer-default-wrapper').length > 0) {
|
||||
$('.connection-settings-update-filetransfer-default-wrapper').css('float', 'none');
|
||||
}
|
||||
// Hides the submit button for non-js users.
|
||||
$('#edit-submit-connection').hide();
|
||||
$('#edit-submit-process').show();
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery);
|
Loading…
Add table
Add a link
Reference in a new issue