@@ -161,7 +161,8 @@ public function search($title = '', $url = null, $options = array()) {
161161 $ inputOptions = Hash::merge (array (
162162 'icon ' => 'search ' ,
163163 'iconSize ' => $ this ->Button ->getButtonSize (),
164- 'class ' => 'btn btn-info '
164+ 'class ' => 'btn btn-info ' ,
165+ 'tooltip ' => null ,
165166 ), $ options , array ('escapeTitle ' => false ));
166167
167168 if (Hash::get ($ options , 'escapeTitle ' , true )) {
@@ -179,7 +180,7 @@ public function search($title = '', $url = null, $options = array()) {
179180 unset($ inputOptions ['iconSize ' ]);
180181
181182 //span tooltipタグの出力
182- if (isset ( $ options [ ' tooltip ' ]) && $ options ['tooltip ' ]) {
183+ if ($ inputOptions ['tooltip ' ]) {
183184 if (is_string ($ options ['tooltip ' ])) {
184185 $ tooltip = $ options ['tooltip ' ];
185186 } else {
@@ -219,7 +220,8 @@ public function sort($title = '', $url = null, $options = array()) {
219220 $ inputOptions = Hash::merge (array (
220221 'icon ' => 'sort ' ,
221222 'iconSize ' => $ this ->Button ->getButtonSize (),
222- 'class ' => 'btn btn-default '
223+ 'class ' => 'btn btn-default ' ,
224+ 'tooltip ' => null ,
223225 ), $ options , array ('escapeTitle ' => false ));
224226
225227 if (Hash::get ($ options , 'escapeTitle ' , true )) {
@@ -237,7 +239,7 @@ public function sort($title = '', $url = null, $options = array()) {
237239 unset($ inputOptions ['iconSize ' ]);
238240
239241 //span tooltipタグの出力
240- if (isset ( $ options [ ' tooltip ' ]) && $ options ['tooltip ' ]) {
242+ if ($ options ['tooltip ' ]) {
241243 if (is_string ($ options ['tooltip ' ])) {
242244 $ tooltip = $ options ['tooltip ' ];
243245 } else {
0 commit comments