Skip to content

Commit

Permalink
Move return val out
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Mar 27, 2017
1 parent 5cf5dce commit 00294f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/installer/packageinstaller/tmpl/default.php
Expand Up @@ -44,12 +44,12 @@
$('#uploader-wrapper').hide();
return;
}
var dragZone = $('#dragarea');
var fileInput = $('#install_package');
var button = $('#select-file-button');
var url = 'index.php?option=com_installer&task=install.ajax_upload';
var returnUrl = '{$return}';
var returnUrl = $('#installer-return').val();
if (returnUrl) {
url += '&return=' + returnUrl;
Expand Down Expand Up @@ -215,4 +215,6 @@
<?php echo JText::_('PLG_INSTALLER_PACKAGEINSTALLER_UPLOAD_AND_INSTALL'); ?>
</button>
</div>

<input id="installer-return" name="return" type="hidden" value="<?php echo $return; ?>" />
</div>

0 comments on commit 00294f2

Please sign in to comment.