Skip to content
Browse files

# [#30450] Remove moduleclass suffix from <input> and <button> elements

in mod_search. Thanks Thomas Hunziker
(Fix #929)
  • Loading branch information...
1 parent 17f420d commit 793fcd97e41ec8d79f6e85d560cd901558d2a4dd @Bakual Bakual committed with infograf768 Apr 4, 2013
Showing with 4 additions and 3 deletions.
  1. +1 −0 installation/CHANGELOG
  2. +3 −3 modules/mod_search/tmpl/default.php
View
1 installation/CHANGELOG
@@ -33,6 +33,7 @@ $ -> Language fix or change
# [#30422] Tags drill down incorrectly finds match to multi-tag tagged items menu item. Thanks Mark
# [#30210] Undefined index errors by using the style 'beezTabs' at an beez template. Thanks Constantin Romankiewicz
# [#30444] Newfeeds Hide icon wrong colour
+ # [#30450] Remove moduleclass suffix from <input> and <button> elements in mod_search. Thanks Thomas Hunziker
03-Apr-2013 Jean-Marie Simonet
# [#30349] Cleaned up use of database & query objects. Thanks Peter van Westen and Michael Babker
View
6 modules/mod_search/tmpl/default.php
@@ -12,13 +12,13 @@
<div class="search<?php echo $moduleclass_sfx ?>">
<form action="<?php echo JRoute::_('index.php');?>" method="post" class="form-inline">
<?php
- $output = '<label for="mod-search-searchword" class="element-invisible">' . $label . '</label> <input name="searchword" id="mod-search-searchword" maxlength="' . $maxlength . '" class="inputbox'.$moduleclass_sfx.' search-query" type="text" size="' . $width . '" value="' . $text . '" onblur="if (this.value==\'\') this.value=\'' . $text . '\';" onfocus="if (this.value==\'' . $text . '\') this.value=\'\';" />';
+ $output = '<label for="mod-search-searchword" class="element-invisible">' . $label . '</label> <input name="searchword" id="mod-search-searchword" maxlength="' . $maxlength . '" class="inputbox search-query" type="text" size="' . $width . '" value="' . $text . '" onblur="if (this.value==\'\') this.value=\'' . $text . '\';" onfocus="if (this.value==\'' . $text . '\') this.value=\'\';" />';
if ($button) :
if ($imagebutton) :
- $button = ' <input type="image" value="' . $button_text . '" class="button' . $moduleclass_sfx.'" src="' . $img . '" onclick="this.form.searchword.focus();"/>';
+ $button = ' <input type="image" value="' . $button_text . '" class="button" src="' . $img . '" onclick="this.form.searchword.focus();"/>';
else :
- $button = ' <button class="button' . $moduleclass_sfx . ' btn btn-primary" onclick="this.form.searchword.focus();">' . $button_text . '</button>';
+ $button = ' <button class="button btn btn-primary" onclick="this.form.searchword.focus();">' . $button_text . '</button>';
endif;
endif;

0 comments on commit 793fcd9

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