Added Joomla Module builder - Compiler
This commit is contained in:
@ -54,13 +54,13 @@ Joomla.submitbutton = function(task, key)
|
||||
if (isValid){
|
||||
jQuery('#form').hide();
|
||||
// get correct form based on task
|
||||
if (task == 'compiler.compiler' || task == 'compiler.installCompiledPlugin') {
|
||||
if (task == 'compiler.compiler' || task == 'compiler.installCompiledModule' || task == 'compiler.installCompiledPlugin') {
|
||||
var form = document.getElementById('compilerForm');
|
||||
} else {
|
||||
var form = document.getElementById('adminForm');
|
||||
}
|
||||
// set the plugin id
|
||||
if (task == 'compiler.installCompiledPlugin') {
|
||||
if (task == 'compiler.installCompiledModule' || task == 'compiler.installCompiledPlugin') {
|
||||
form.install_item_id.value = key;
|
||||
}
|
||||
// set the task value
|
||||
|
@ -137,6 +137,11 @@ $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=jooml
|
||||
'views' => 'components_dashboard',
|
||||
'title' => JText::_('COM_COMPONENTBUILDER_THE_COMPONENT_DASHBOARD'),
|
||||
'icon' => 'dashboard'),
|
||||
array(
|
||||
'view' => 'component_modules',
|
||||
'views' => 'components_modules',
|
||||
'title' => JText::_('COM_COMPONENTBUILDER_THE_COMPONENT_MODULES'),
|
||||
'icon' => 'cube'),
|
||||
array(
|
||||
'view' => 'component_plugins',
|
||||
'views' => 'components_plugins',
|
||||
|
@ -81,6 +81,22 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'joomla_moduleTab', 'helper', JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULE_HELPER', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('joomla_module.helper_left', $this); ?>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('joomla_module.helper_right', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span12">
|
||||
<?php echo JLayoutHelper::render('joomla_module.helper_fullwidth', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'joomla_moduleTab', 'forms_fields', JText::_('COM_COMPONENTBUILDER_JOOMLA_MODULE_FORMS_FIELDS', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
</div>
|
||||
@ -175,52 +191,52 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_custom_abstract_class_helper_header listeners for add_custom_abstract_class_helper_header_vvvvvxb function
|
||||
jQuery('#jform_add_custom_abstract_class_helper_header').on('keyup',function()
|
||||
// #jform_add_class_helper listeners for add_class_helper_vvvvvxb function
|
||||
jQuery('#jform_add_class_helper').on('keyup',function()
|
||||
{
|
||||
var add_custom_abstract_class_helper_header_vvvvvxb = jQuery("#jform_add_custom_abstract_class_helper_header input[type='radio']:checked").val();
|
||||
var add_abstract_class_helper_vvvvvxb = jQuery("#jform_add_abstract_class_helper input[type='radio']:checked").val();
|
||||
vvvvvxb(add_custom_abstract_class_helper_header_vvvvvxb,add_abstract_class_helper_vvvvvxb);
|
||||
var add_class_helper_vvvvvxb = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvxb(add_class_helper_vvvvvxb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_abstract_class_helper_header',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_add_class_helper',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_abstract_class_helper_header_vvvvvxb = jQuery("#jform_add_custom_abstract_class_helper_header input[type='radio']:checked").val();
|
||||
var add_abstract_class_helper_vvvvvxb = jQuery("#jform_add_abstract_class_helper input[type='radio']:checked").val();
|
||||
vvvvvxb(add_custom_abstract_class_helper_header_vvvvvxb,add_abstract_class_helper_vvvvvxb);
|
||||
var add_class_helper_vvvvvxb = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvxb(add_class_helper_vvvvvxb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_abstract_class_helper listeners for add_abstract_class_helper_vvvvvxb function
|
||||
jQuery('#jform_add_abstract_class_helper').on('keyup',function()
|
||||
// #jform_add_class_helper_header listeners for add_class_helper_header_vvvvvxc function
|
||||
jQuery('#jform_add_class_helper_header').on('keyup',function()
|
||||
{
|
||||
var add_custom_abstract_class_helper_header_vvvvvxb = jQuery("#jform_add_custom_abstract_class_helper_header input[type='radio']:checked").val();
|
||||
var add_abstract_class_helper_vvvvvxb = jQuery("#jform_add_abstract_class_helper input[type='radio']:checked").val();
|
||||
vvvvvxb(add_custom_abstract_class_helper_header_vvvvvxb,add_abstract_class_helper_vvvvvxb);
|
||||
var add_class_helper_header_vvvvvxc = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvxc = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvxc(add_class_helper_header_vvvvvxc,add_class_helper_vvvvvxc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_abstract_class_helper',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_add_class_helper_header',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_abstract_class_helper_header_vvvvvxb = jQuery("#jform_add_custom_abstract_class_helper_header input[type='radio']:checked").val();
|
||||
var add_abstract_class_helper_vvvvvxb = jQuery("#jform_add_abstract_class_helper input[type='radio']:checked").val();
|
||||
vvvvvxb(add_custom_abstract_class_helper_header_vvvvvxb,add_abstract_class_helper_vvvvvxb);
|
||||
var add_class_helper_header_vvvvvxc = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvxc = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvxc(add_class_helper_header_vvvvvxc,add_class_helper_vvvvvxc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_abstract_class_helper listeners for add_abstract_class_helper_vvvvvxd function
|
||||
jQuery('#jform_add_abstract_class_helper').on('keyup',function()
|
||||
// #jform_add_class_helper listeners for add_class_helper_vvvvvxc function
|
||||
jQuery('#jform_add_class_helper').on('keyup',function()
|
||||
{
|
||||
var add_abstract_class_helper_vvvvvxd = jQuery("#jform_add_abstract_class_helper input[type='radio']:checked").val();
|
||||
vvvvvxd(add_abstract_class_helper_vvvvvxd);
|
||||
var add_class_helper_header_vvvvvxc = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvxc = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvxc(add_class_helper_header_vvvvvxc,add_class_helper_vvvvvxc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_abstract_class_helper',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_add_class_helper',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_abstract_class_helper_vvvvvxd = jQuery("#jform_add_abstract_class_helper input[type='radio']:checked").val();
|
||||
vvvvvxd(add_abstract_class_helper_vvvvvxd);
|
||||
var add_class_helper_header_vvvvvxc = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvxc = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvxc(add_class_helper_header_vvvvvxc,add_class_helper_vvvvvxc);
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user