diff --git a/administrator/components/com_installer/views/install/tmpl/default.php b/administrator/components/com_installer/views/install/tmpl/default.php index 954e34bac130b..2e260cf9b1a79 100644 --- a/administrator/components/com_installer/views/install/tmpl/default.php +++ b/administrator/components/com_installer/views/install/tmpl/default.php @@ -1,10 +1,10 @@ addScriptDeclaration( ' - Joomla.submitbutton4 = function() { - var form = document.getElementById("adminForm"); + Joomla.submitbutton4 = function() { + var form = document.getElementById("adminForm"); - // do field validation - if (form.install_url.value == "" || form.install_url.value == "http://" || form.install_url.value == "https://") { - alert("' . JText::_('COM_INSTALLER_MSG_INSTALL_ENTER_A_URL', true) . '"); - } - else - { - jQuery("#loading").css("display", "block"); - - form.installtype.value = "url"; - form.submit(); - } - }; + // do field validation + if (form.install_url.value == "" || form.install_url.value == "http://" || form.install_url.value == "https://") { + alert("' . JText::_('COM_INSTALLER_MSG_INSTALL_ENTER_A_URL', true) . '"); + } + else + { + jQuery("#loading").css("display", "block"); + + form.installtype.value = "url"; + form.submit(); + } + }; - Joomla.submitbuttonInstallWebInstaller = function() { - var form = document.getElementById("adminForm"); - - form.install_url.value = "https://appscdn.joomla.org/webapps/jedapps/webinstaller.xml"; - - Joomla.submitbutton4(); - }; + Joomla.submitbuttonInstallWebInstaller = function() { + var form = document.getElementById("adminForm"); + + form.install_url.value = "https://appscdn.joomla.org/webapps/jedapps/webinstaller.xml"; + + Joomla.submitbutton4(); + }; - // Add spindle-wheel for installations: - jQuery(document).ready(function($) { - var outerDiv = $("#installer-install"); - - $("#loading") - .css("top", outerDiv.position().top - $(window).scrollTop()) - .css("left", outerDiv.position().left - $(window).scrollLeft()) - .css("width", outerDiv.width()) - .css("height", outerDiv.height()) - .css("display", "none"); - }); - ' + // Add spindle-wheel for installations: + jQuery(document).ready(function($) { + var outerDiv = $("#installer-install"); + + $("#loading") + .css("top", outerDiv.position().top - $(window).scrollTop()) + .css("left", outerDiv.position().left - $(window).scrollLeft()) + .css("width", outerDiv.width()) + .css("height", outerDiv.height()) + .css("display", "none"); + }); + ' ); JFactory::getDocument()->addStyleDeclaration( ' - #loading { - background: rgba(255, 255, 255, .8) url(\'' . JHtml::_('image', 'jui/ajax-loader.gif', '', null, true, true) . '\') 50% 15% no-repeat; - position: fixed; - opacity: 0.8; - -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 80); - filter: alpha(opacity = 80); - margin: -10px -50px 0 -50px; - overflow: hidden; - } - - .j-jed-message { - margin-bottom: 40px; - line-height: 2em; - color:#333333; - } - ' + #loading { + background: rgba(255, 255, 255, .8) url(\'' . JHtml::_('image', 'jui/ajax-loader.gif', '', null, true, true) . '\') 50% 15% no-repeat; + position: fixed; + opacity: 0.8; + -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 80); + filter: alpha(opacity = 80); + margin: -10px -50px 0 -50px; + overflow: hidden; + } + + .j-jed-message { + margin-bottom: 40px; + line-height: 2em; + color:#333333; + } + ' ); ?> @@ -91,23 +91,22 @@