This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Using document.id instead of document.getElementById

  • Loading branch information...
chdemko committed Nov 19, 2011
1 parent 9215f59 commit 30fb250e203d6e8b1dd0208889e4109178d3d339
Showing with 2 additions and 2 deletions.
  1. +2 −2 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.