Skip to content
Browse files

Using document.id instead of document.getElementById

  • Loading branch information...
1 parent 9215f59 commit 30fb250e203d6e8b1dd0208889e4109178d3d339 @chdemko chdemko committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/joomla/form/fields/media.php
View
4 libraries/joomla/form/fields/media.php
@@ -128,8 +128,8 @@ protected function getInput()
$html[] = '<div class="button2-left">';
$html[] = ' <div class="blank">';
$html[] = ' <a title="' . JText::_('JLIB_FORM_BUTTON_CLEAR') . '"' . ' href="#" onclick="';
- $html[] = 'document.getElementById(\'' . $this->id . '\').value=\'\';';
- $html[] = 'document.getElementById(\'' . $this->id . '\').fireEvent(\'change\');';
+ $html[] = 'document.id(\'' . $this->id . '\').value=\'\';';
+ $html[] = 'document.id(\'' . $this->id . '\').fireEvent(\'change\');';
$html[] = 'return false;';
$html[] = '">';
$html[] = ' ' . JText::_('JLIB_FORM_BUTTON_CLEAR') . '</a>';

0 comments on commit 30fb250

Please sign in to comment.
Something went wrong with that request. Please try again.