@@ -74,7 +74,7 @@ public function add($title = '', $url = null, $options = array()) {
7474 unset($ inputOptions ['icon ' ]);
7575 //ボタンサイズ
7676 if ($ inputOptions ['iconSize ' ]) {
77- $ inputOptions ['class ' ] .= ' ' . h ($ inputOptions ['iconSize ' ]);
77+ $ inputOptions ['class ' ] .= ' ' . trim ( h ($ inputOptions ['iconSize ' ]) );
7878 }
7979 unset($ inputOptions ['iconSize ' ]);
8080
@@ -123,7 +123,9 @@ public function edit($title = '', $url = null, $options = array()) {
123123 unset($ inputOptions ['icon ' ]);
124124
125125 //ボタンサイズ
126- $ inputOptions ['class ' ] .= ' ' . h ($ inputOptions ['iconSize ' ]);
126+ if ($ inputOptions ['iconSize ' ]) {
127+ $ inputOptions ['class ' ] .= ' ' . trim (h ($ inputOptions ['iconSize ' ]));
128+ }
127129 unset($ inputOptions ['iconSize ' ]);
128130
129131 //span tooltipタグの出力
@@ -171,7 +173,9 @@ public function search($title = '', $url = null, $options = array()) {
171173 unset($ inputOptions ['icon ' ]);
172174
173175 //ボタンサイズ
174- $ inputOptions ['class ' ] .= ' ' . h ($ inputOptions ['iconSize ' ]);
176+ if ($ inputOptions ['iconSize ' ]) {
177+ $ inputOptions ['class ' ] .= ' ' . trim (h ($ inputOptions ['iconSize ' ]));
178+ }
175179 unset($ inputOptions ['iconSize ' ]);
176180
177181 //span tooltipタグの出力
@@ -227,7 +231,9 @@ public function sort($title = '', $url = null, $options = array()) {
227231 unset($ inputOptions ['icon ' ]);
228232
229233 //ボタンサイズ
230- $ inputOptions ['class ' ] .= ' ' . h ($ inputOptions ['iconSize ' ]);
234+ if ($ inputOptions ['iconSize ' ]) {
235+ $ inputOptions ['class ' ] .= ' ' . trim (h ($ inputOptions ['iconSize ' ]));
236+ }
231237 unset($ inputOptions ['iconSize ' ]);
232238
233239 //span tooltipタグの出力
0 commit comments