recurring_select
recurring_select copied to clipboard
support inline display of the dialog
We wanted to display the recurring select dialog inline (below the select input), so we customised your plugin as follows.
The inline display can be specified using data attribute on the input:
f.select_recurring :current_existing_rule, nil, { :allow_blank => true }, { data: { recurring_select_position: 'inline' } }
A position class (either fixed
or inline
) is added to the . rs_dialog_holder
element and the css now supports the two options.
We also adjusted the recurring_select_dialog.js.coffee.erb
so that when inline:
- the dialog is not vertically positioned
- clicking anywhere outside of the dialog (body) cancels it
Mainly, these changes do not break existing configurations.
any chance to have this merged?
This would be great!