@@ 236-242 (lines=7) @@ | ||
233 | } |
|
234 | } |
|
235 | ||
236 | public function fieldAsSubmit($index,$cssStyle=NULL,$url=NULL,$responseElement=NULL,$attributes=NULL){ |
|
237 | return $this->_fieldAs(function($id,$name,$value,$caption) use ($url,$responseElement,$cssStyle){ |
|
238 | $button=new HtmlButton($id,$value,$cssStyle); |
|
239 | $this->_buttonAsSubmit($button,"click",$url,$responseElement); |
|
240 | return $button; |
|
241 | }, $index,$attributes); |
|
242 | } |
|
243 | } |
@@ 366-372 (lines=7) @@ | ||
363 | return $this->getForm(); |
|
364 | } |
|
365 | ||
366 | public function fieldAsSubmit($index,$cssStyle=NULL,$url=NULL,$responseElement=NULL,$attributes=NULL){ |
|
367 | return $this->_fieldAs(function($id,$name,$value,$caption) use ($url,$responseElement,$cssStyle,$index){ |
|
368 | $button=new HtmlButton($id,$value,$cssStyle); |
|
369 | $button->postOnClick($url,"$(event.target).closest('tr').find(':input').serialize()",$responseElement); |
|
370 | return $this->_visibleOver($button); |
|
371 | }, $index,$attributes); |
|
372 | } |
|
373 | ||
374 | protected function _visibleOver($element){ |
|
375 | $this->_visibleHover=true; |