Skip to content

Commit

Permalink
Codestyle changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruud68 committed Nov 30, 2017
1 parent 7feef50 commit 95a6d3b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions administrator/components/com_plugins/views/plugin/tmpl/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,16 @@
$input = JFactory::getApplication()->input;

// In case of modal
$isModal = $input->get('layout') == 'modal' ? true : false;
$isModal = $input->get('layout') === 'modal' ? true : false;
$layout = $isModal ? 'modal' : 'edit';
$tmpl = $isModal || $input->get('tmpl', '', 'cmd') === 'component' ? '&tmpl=component' : '';

JFactory::getDocument()->addScriptDeclaration("
Joomla.submitbutton = function(task)
{
if (task == 'plugin.cancel' || document.formvalidator.isValid(document.getElementById('style-form')))
{
Joomla.submitbutton = function(task) {
if (task === 'plugin.cancel' || document.formvalidator.isValid(document.getElementById('style-form'))) {
Joomla.submitform(task, document.getElementById('style-form'));
if (task !== 'plugin.apply')
{
if (task !== 'plugin.apply') {
if (self !== top ) {
window.top.setTimeout('window.parent.location = window.top.location.href', 1000);
window.parent.jQuery('#plugin" . $this->item->extension_id . "Modal').modal('hide');
Expand Down

0 comments on commit 95a6d3b

Please sign in to comment.