fixed gh-106 to insure the correct form is submitted on compile, also some other minor bug fixes
This commit is contained in:
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 49 of this MVC
|
||||
@build 31st May, 2017
|
||||
@version @update number 51 of this MVC
|
||||
@build 5th August, 2017
|
||||
@created 1st February, 2017
|
||||
@package Component Builder
|
||||
@subpackage default.php
|
||||
@ -36,13 +36,25 @@ JHtml::_('behavior.formvalidation');
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
JHtml::_('behavior.keepalive');
|
||||
?>
|
||||
<?php if ($this->canDo->get('compiler.access')): ?>
|
||||
<?php if ($this->canDo->get('compiler.access')): ?>
|
||||
<script type="text/javascript">
|
||||
Joomla.submitbutton = function(task) {
|
||||
if (task === 'compiler.back') {
|
||||
parent.history.back();
|
||||
return false;
|
||||
} else {
|
||||
var form = document.getElementById('adminForm');
|
||||
form.task.value = task;
|
||||
form.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&view=compiler'); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
Joomla.submitbutton = function(task)
|
||||
Joomla.submitbutton2 = function(task)
|
||||
{
|
||||
if (task == ''){
|
||||
return false;
|
||||
@ -55,7 +67,9 @@ Joomla.submitbutton = function(task)
|
||||
}
|
||||
if (isValid){
|
||||
jQuery('#form').hide();
|
||||
Joomla.submitform(task);
|
||||
var form = document.getElementById('compilerForm');
|
||||
form.task.value = task;
|
||||
form.submit();
|
||||
if (task == 'compiler.compiler'){
|
||||
jQuery('#compiler').show();
|
||||
} else if (task == 'compiler.clearTmp'){
|
||||
@ -114,7 +128,7 @@ jQuery(document).ready(function($) {
|
||||
</div>
|
||||
<br />
|
||||
<div class="clearfix"></div>
|
||||
<button class="btn btn-small btn-success" onclick="Joomla.submitbutton('compiler.compiler')"><span class="icon-cog icon-white"></span>
|
||||
<button class="btn btn-small btn-success" onclick="Joomla.submitbutton2('compiler.compiler')"><span class="icon-cog icon-white"></span>
|
||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPILE_COMPONENT'); ?>
|
||||
</button>
|
||||
<input type="hidden" name="version" value="3" />
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 49 of this MVC
|
||||
@build 31st May, 2017
|
||||
@version @update number 51 of this MVC
|
||||
@build 5th August, 2017
|
||||
@created 1st February, 2017
|
||||
@package Component Builder
|
||||
@subpackage view.html.php
|
||||
|
Reference in New Issue
Block a user