Skip to content

Releases: deb17/flask-modals

Enhancement

27 Apr 04:27
Compare
Choose a tag to compare
Enhancement Pre-release
Pre-release
  • modal backdrop problem will not occur.
  • No need for an IIFE to code custom javascript.
  • Python code is simplified at the expense of a few extra lines.

Internal improvement

31 Oct 04:34
Compare
Choose a tag to compare
Internal improvement Pre-release
Pre-release
  • Replaced parser with simple string matching
  • Tested uploading of file thru a modal
  • Submitter element included with form data sent to server.

Major changes

07 Sep 10:29
Compare
Choose a tag to compare
Major changes Pre-release
Pre-release
  • Dropped turbo.js
  • Removed beautifulsoup dependency. Now builtin parser is used.
  • Simpler and cleaner interface.
  • Fixed issue regarding assets being reused in page loaded by form submit. No need of redirect_to and render_template_redirect.
  • data-turbo=false will not be set on the body tag of every page, as turbo.js is not being used.

To be done

  • Enable file upload via modal.
  • Fix to send submit button value along with form data.

Enhancement

08 Jun 09:41
Compare
Choose a tag to compare
Enhancement Pre-release
Pre-release
  • Support for bootstrap 5 modals.
  • Examples folder now has an app using bootstrap 5.

Remove Turbo class

24 May 13:54
Compare
Choose a tag to compare
Remove Turbo class Pre-release
Pre-release
  • Removed the Turbo class and converted its methods into functions.
  • Updated comments in modal.py

Use beautiful soup library

22 May 08:50
Compare
Choose a tag to compare
Pre-release
  • Replaced the built-in html parser with beautiful soup.
  • New response decorator to handle calls to render_template_modal.
  • Turbo library now always loaded.
  • Links outside the modal form will not need a data-turbo="false" attribute now.
  • Can reload the page on form submit, if needed.

Remove turbo-flask dependency

19 May 03:13
Compare
Choose a tag to compare
Pre-release
  • This extension does not depend on the Turbo-Flask extension anymore.
  • Added a new function redirect_to to help in unloading the turbo.js library. The after_app_request callback has been removed.

Bug fix and enhancement

17 May 03:58
Compare
Choose a tag to compare
Pre-release
  • _keep_flashes session variable is now set in an after_app_request function. Another session variable _cond_flashes is needed to do this.
  • Links on the modal page will now not require the data-turbo="false" attribute. This is handled by setting the attribute on the body tag in the parser.

Enhancement

14 May 14:17
Compare
Choose a tag to compare
Enhancement Pre-release
Pre-release
  • Reload page on redirect to remove the Turbo library. This is better than setting a body attribute of data-turbo="false".
  • Fix documentation

Enhancement

10 May 10:40
Compare
Choose a tag to compare
Enhancement Pre-release
Pre-release
  • Allow rendering of template on post.
  • Refactorings
  • Fix documentation