Fixed gh-678 moved the compilation success message out of the redirection message to a user state message, that get loaded to the page on successful compilation. This preserves the button scripts needed to install the compiled packages.
This commit is contained in:
@ -50,7 +50,10 @@ Joomla.submitbutton = function(task, key)
|
||||
}
|
||||
// set the task value
|
||||
form.task.value = task;
|
||||
form.submit();
|
||||
// seems we need a little delay here
|
||||
setTimeout(function() {
|
||||
form.submit();
|
||||
}, 100);
|
||||
// some ui movements
|
||||
if (task == 'compiler.compiler'){
|
||||
// get the component name
|
||||
@ -124,6 +127,12 @@ jQuery('<div id="compiling"></div>')
|
||||
<?php else : ?>
|
||||
<div id="j-main-container">
|
||||
<?php endif; ?>
|
||||
<?php if (ComponentbuilderHelper::checkString($this->SuccessMessage)): ?>
|
||||
<div class="alert alert-success">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<?= $this->SuccessMessage; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div id="form">
|
||||
<div class="span4">
|
||||
<h3><?= JText::_('COM_COMPONENTBUILDER_READY_TO_COMPILE_A_COMPONENT') ?></h3>
|
||||
|
@ -37,6 +37,7 @@ class ComponentbuilderViewCompiler extends JViewLegacy
|
||||
JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=compiler');
|
||||
$this->sidebar = JHtmlSidebar::render();
|
||||
}
|
||||
$this->SuccessMessage = $this->app->getUserState('com_componentbuilder.success_message', false);
|
||||
$this->Components = $this->get('Components');
|
||||
$this->form = $this->setForm();
|
||||
// set the compiler artwork from global settings
|
||||
|
Reference in New Issue
Block a user