make classes in folder dialog states consistent

make sure the class is applied to a child element, so that `$el.find`
will always find something for `js-will-stick-at-bottom-when-scrolling`.

Also, clean up code by treating all stickies on the template folder
form as dialogs - they all are after all all dialogs - modals that
expect your attention on top of the main page content.
This commit is contained in:
Leo Hemsted
2019-01-25 16:47:49 +00:00
parent 05c455250c
commit d5e95af446
2 changed files with 27 additions and 27 deletions

View File

@@ -13,16 +13,16 @@
{{ page_footer('Move', button_name='operation', button_value='move-to-existing-folder') }}
</div>
</div>
<div id="move_to_new_folder_form" class="js-will-stick-at-bottom-when-scrolling">
<fieldset>
<div id="move_to_new_folder_form">
<fieldset class="js-will-stick-at-bottom-when-scrolling">
<legend class="visuallyhidden">Move to a new folder</legend>
{{ textbox(templates_and_folders_form.move_to_new_folder_name) }}
{{ page_footer('Move to a new folder', button_name='operation', button_value='move-to-new-folder') }}
</fieldset>
</div>
{% endif %}
<div id="add_new_folder_form" class="js-will-stick-at-bottom-when-scrolling">
<fieldset>
<div id="add_new_folder_form">
<fieldset class="js-will-stick-at-bottom-when-scrolling">
<legend class="visuallyhidden">Add a new folder</legend>
{{ textbox(templates_and_folders_form.add_new_folder_name) }}
{{ page_footer('New folder', button_name='operation', button_value='add-new-folder') }}