Skip to content

Commit 2f116b6

Browse files
QuyHLeithner
authored andcommitted
Add prefix to class name (#25454)
test
1 parent 7d084b1 commit 2f116b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

administrator/components/com_templates/views/style/tmpl/edit_assignment.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
defined('_JEXEC') or die;
1111

12-
// Initiasile related data.
12+
// Initialise related data.
1313
JLoader::register('MenusHelper', JPATH_ADMINISTRATOR . '/components/com_menus/helpers/menus.php');
1414
$menuTypes = MenusHelper::getMenuLinks();
1515
$user = JFactory::getUser();
@@ -26,14 +26,14 @@
2626
<?php foreach ($menuTypes as &$type) : ?>
2727
<li>
2828
<div class="menu-links-block">
29-
<button class="btn jform-rightbtn" type="button" onclick="jQuery('.<?php echo $type->menutype; ?>').attr('checked', !jQuery('.<?php echo $type->menutype; ?>').attr('checked'));">
29+
<button class="btn jform-rightbtn" type="button" onclick="jQuery('.menutype-<?php echo $type->menutype; ?>').attr('checked', !jQuery('.menutype-<?php echo $type->menutype; ?>').attr('checked'));">
3030
<span class="icon-checkbox-partial" aria-hidden="true"></span> <?php echo JText::_('JGLOBAL_SELECTION_INVERT'); ?>
3131
</button>
3232
<h5><?php echo $type->title ?: $type->menutype; ?></h5>
3333

3434
<?php foreach ($type->links as $link) : ?>
3535
<label class="checkbox small" for="link<?php echo (int) $link->value; ?>" >
36-
<input type="checkbox" name="jform[assigned][]" value="<?php echo (int) $link->value; ?>" id="link<?php echo (int) $link->value; ?>"<?php if ($link->template_style_id == $this->item->id) : ?> checked="checked"<?php endif; ?><?php if ($link->checked_out && $link->checked_out != $user->id) : ?> disabled="disabled"<?php else : ?> class="chk-menulink <?php echo $type->menutype; ?>"<?php endif; ?> />
36+
<input type="checkbox" name="jform[assigned][]" value="<?php echo (int) $link->value; ?>" id="link<?php echo (int) $link->value; ?>"<?php if ($link->template_style_id == $this->item->id) : ?> checked="checked"<?php endif; ?><?php if ($link->checked_out && $link->checked_out != $user->id) : ?> disabled="disabled"<?php else : ?> class="chk-menulink menutype-<?php echo $type->menutype; ?>"<?php endif; ?> />
3737
<?php echo JLayoutHelper::render('joomla.html.treeprefix', array('level' => $link->level)) . $link->text; ?>
3838
</label>
3939
<?php endforeach; ?>

0 commit comments

Comments
 (0)