Skip to content

Commit

Permalink
Fix category edit modal (issue #10520)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrezdev committed May 17, 2016
1 parent 121e5ba commit 2165d63
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -169,7 +169,7 @@ protected function getInput()
. ' id="' . $this->id . '_edit"'
. ' data-toggle="modal"'
. ' role="button"'
. ' href="#categoryEdit' . $this->id . 'Modal"'
. ' href="#categoryEdit' . $this->value . 'Modal"'
. ' title="' . JHtml::tooltipText('COM_CATEGORIES_EDIT_CATEGORY') . '">'
. '<span class="icon-edit"></span> ' . JText::_('JACTION_EDIT')
. '</a>';
Expand Down Expand Up @@ -207,7 +207,7 @@ protected function getInput()
// Edit category modal
$html[] = JHtml::_(
'bootstrap.renderModal',
'categoryEdit' . $this->id . 'Modal',
'categoryEdit' . $this->value . 'Modal',
array(
'url' => $urlEdit,
'title' => JText::_('COM_CATEGORIES_EDIT_CATEGORY'),
Expand All @@ -218,13 +218,13 @@ protected function getInput()
'modalWidth' => '80',
'bodyHeight' => '70',
'footer' => '<button type="button" class="btn" data-dismiss="modal" aria-hidden="true"'
. ' onclick="jQuery(\'#categoryEdit' . $this->id . 'Modal iframe\').contents().find(\'#closeBtn\').click();">'
. ' onclick="jQuery(\'#categoryEdit' . $this->value . 'Modal iframe\').contents().find(\'#closeBtn\').click();">'
. JText::_("JLIB_HTML_BEHAVIOR_CLOSE") . '</button>'
. '<button type="button" class="btn btn-primary" data-dismiss="modal" aria-hidden="true"'
. ' onclick="jQuery(\'#categoryEdit' . $this->id . 'Modal iframe\').contents().find(\'#saveBtn\').click();">'
. '<button type="button" class="btn btn-primary" aria-hidden="true"'
. ' onclick="jQuery(\'#categoryEdit' . $this->value . 'Modal iframe\').contents().find(\'#saveBtn\').click();">'
. JText::_("JSAVE") . '</button>'
. '<button type="button" class="btn btn-success" aria-hidden="true"'
. ' onclick="jQuery(\'#categoryEdit' . $this->id . 'Modal iframe\').contents().find(\'#applyBtn\').click();">'
. ' onclick="jQuery(\'#categoryEdit' . $this->value . 'Modal iframe\').contents().find(\'#applyBtn\').click();">'
. JText::_("JAPPLY") . '</button>'
)
);
Expand Down

0 comments on commit 2165d63

Please sign in to comment.