Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions administrator/components/com_config/forms/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@
showon="ftp_enable:1"
min="1"
max="65535"
default="21"
hint="21"
validate="number"
filter="integer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public function display($tpl = null)
$this->loadHelper('select');

// Assign view variables.
$ftp = $model->getFTPOptions();
$defaultMethod = $ftp['enabled'] ? 'hybrid' : 'direct';
$this->ftp = $model->getFTPOptions();
$defaultMethod = $this->ftp['enabled'] ? 'hybrid' : 'direct';

$this->updateInfo = $model->getUpdateInformation();
$this->methodSelect = JoomlaupdateHelperSelect::getMethods($defaultMethod);
Expand Down
12 changes: 6 additions & 6 deletions build/media_source/com_joomlaupdate/js/default.es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Joomla = window.Joomla || {};
'use strict';

Joomla.extractionMethodHandler = function(element, prefix) {
var displayStyle = element.value === 'direct' ? 'hidden' : 'table-row';
var force = element.value === 'direct';

document.getElementById(prefix + '_hostname').classList.add(displayStyle);
document.getElementById(prefix + '_port').classList.add(displayStyle);
document.getElementById(prefix + '_username').classList.add(displayStyle);
document.getElementById(prefix + '_password').classList.add(displayStyle);
document.getElementById(prefix + '_directory').classList.add(displayStyle);
document.getElementById(prefix + '_hostname').classList.toggle('hidden', force);
document.getElementById(prefix + '_port').classList.toggle('hidden', force);
document.getElementById(prefix + '_username').classList.toggle('hidden', force);
document.getElementById(prefix + '_password').classList.toggle('hidden', force);
document.getElementById(prefix + '_directory').classList.toggle('hidden', force);
}

Joomla.submitbuttonUpload = function() {
Expand Down