From 79fb0106a5e1c78fdeacda90b47c770941112516 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Sun, 8 May 2016 13:31:09 +0200 Subject: [PATCH 1/3] Update default.php --- .../views/install/tmpl/default.php | 206 ++++++++---------- 1 file changed, 96 insertions(+), 110 deletions(-) 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 @@
-
- sidebar)) : ?> -
- sidebar; ?> -
-
- -
- - - - showMessage) : ?> - loadTemplate('message'); ?> - showJedAndWebInstaller) : ?> -
+ + sidebar)) : ?> +
+ sidebar; ?> +
+
+ +
+ + + showMessage) : ?> + loadTemplate('message'); ?> + showJedAndWebInstaller) : ?> +
-

-   

- -
- - - - - trigger('onInstallerViewBeforeFirstTab', array()); - ?> - trigger('onInstallerAddInstallationTab', array()); - ?> - trigger('onInstallerViewAfterLastTab', array()); - ?> - - enqueueMessage(JText::_('COM_INSTALLER_NO_INSTALLATION_PLUGINS_FOUND'), 'warning'); - } - ?> +

+   

+ +
+ + + + trigger('onInstallerViewBeforeFirstTab', array()); ?> + + trigger('onInstallerAddInstallationTab', array()); ?> + + trigger('onInstallerViewAfterLastTab', array()); ?> + + + enqueueMessage(JText::_('COM_INSTALLER_NO_INSTALLATION_PLUGINS_FOUND'), 'warning'); ?> + - ftp) : ?> - - loadTemplate('ftp'); ?> - - + ftp) : ?> + + loadTemplate('ftp'); ?> + + - - - + + + - -
- + +
+
From 62129c227d01d79bbb20a40e5527f813bebcaafa Mon Sep 17 00:00:00 2001 From: zero-24 Date: Sun, 8 May 2016 13:34:57 +0200 Subject: [PATCH 2/3] Update packageinstaller.php --- plugins/installer/packageinstaller/packageinstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/installer/packageinstaller/packageinstaller.php b/plugins/installer/packageinstaller/packageinstaller.php index 158c27e5af651..6e2b3857c7769 100644 --- a/plugins/installer/packageinstaller/packageinstaller.php +++ b/plugins/installer/packageinstaller/packageinstaller.php @@ -26,7 +26,7 @@ class PlgInstallerPackageInstaller extends JPlugin * Recognized key values include 'name', 'group', 'params', 'language' * (this list is not meant to be comprehensive). * - * @since 1.5 + * @since 3.6.0 */ public function __construct(&$subject, $config = array()) { From d7b7c88bd3b9929257938013bb575c8c6e567195 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Sun, 8 May 2016 13:36:22 +0200 Subject: [PATCH 3/3] Update urlinstaller.php --- plugins/installer/urlinstaller/urlinstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/installer/urlinstaller/urlinstaller.php b/plugins/installer/urlinstaller/urlinstaller.php index 259258718798b..0f0097fcfe3b3 100644 --- a/plugins/installer/urlinstaller/urlinstaller.php +++ b/plugins/installer/urlinstaller/urlinstaller.php @@ -25,7 +25,7 @@ class PlgInstallerUrlInstaller extends JPlugin * Recognized key values include 'name', 'group', 'params', 'language' * (this list is not meant to be comprehensive). * - * @since 1.5 + * @since 3.6.0 */ public function __construct(&$subject, $config = array()) {