Class: BBMB::Html::View::ClearOrder
- Inherits:
-
HtmlGrid::SpanComposite
- Object
- HtmlGrid::SpanComposite
- BBMB::Html::View::ClearOrder
- Includes:
- HtmlGrid::FormMethods
- Defined in:
- lib/bbmb/html/view/current_order.rb
Direct Known Subclasses
Constant Summary collapse
- FORM_ID =
'clear'
- EVENT =
:clear_order
- COMPONENTS =
{ [0,0] => :clear, }
Instance Method Summary collapse
Instance Method Details
#clear(model) ⇒ Object
98 99 100 101 102 103 104 |
# File 'lib/bbmb/html/view/current_order.rb', line 98 def clear(model) = HtmlGrid::Button.new(event, model, @session, self) condition = "if(confirm('#{@lookandfeel.lookup(event.to_s << "_confirm")}'))" condition << "this.form.submit();" .set_attribute('onclick', condition) end |