Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Using document.id instead of document.getElementById
Browse files Browse the repository at this point in the history
  • Loading branch information
chdemko committed Nov 19, 2011
1 parent 9215f59 commit 30fb250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/joomla/form/fields/media.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ protected function getInput()
$html[] = '<div class="button2-left">'; $html[] = '<div class="button2-left">';
$html[] = ' <div class="blank">'; $html[] = ' <div class="blank">';
$html[] = ' <a title="' . JText::_('JLIB_FORM_BUTTON_CLEAR') . '"' . ' href="#" onclick="'; $html[] = ' <a title="' . JText::_('JLIB_FORM_BUTTON_CLEAR') . '"' . ' href="#" onclick="';
$html[] = 'document.getElementById(\'' . $this->id . '\').value=\'\';'; $html[] = 'document.id(\'' . $this->id . '\').value=\'\';';
$html[] = 'document.getElementById(\'' . $this->id . '\').fireEvent(\'change\');'; $html[] = 'document.id(\'' . $this->id . '\').fireEvent(\'change\');';
$html[] = 'return false;'; $html[] = 'return false;';
$html[] = '">'; $html[] = '">';
$html[] = ' ' . JText::_('JLIB_FORM_BUTTON_CLEAR') . '</a>'; $html[] = ' ' . JText::_('JLIB_FORM_BUTTON_CLEAR') . '</a>';
Expand Down

0 comments on commit 30fb250

Please sign in to comment.