Skip to content

Releases: mttbernardini/dialog

v3.0

10 Sep 11:52
Compare
Choose a tag to compare
  • Removed polyfill for addEventListener on IE8.
  • dialog() now returns a Promise (no more callbacks) resolving to the result object (previously known as returnObj).
  • Renamed varsdata, both in the options for dialog and in the Promise resolved object.

NB: These changes break compatibility with v2.x. Please read the new documentation for further details.

NB: This version drops support for older browsers and IE. Consider using polyfills for addEventListener and Promise for browsers not supporting them.

v2.1

14 Jul 18:03
Compare
Choose a tag to compare
  • returnObj.value is correctly set to undefined if a dialog is not of "prompt" type.
  • Renamed button classes (dialog-continue-buttondialog-continue-btn, dialog-cancel-buttondialog-cancel-btn).
  • Removed unneeded data-action attributes on dialog buttons.
  • Simplified code (increased readability).

v2.0.1

14 Jul 18:05
Compare
Choose a tag to compare
  • Minor bugfixes.

v2.0.0

14 Jul 18:06
Compare
Choose a tag to compare
  • Reconception of the majority of the code.
  • Uploaded the project on GitHub.
  • Removed data-* attributes for styling, now using classes (refer to style.css file to see new classes used).
  • Renamed callBack → callback, which is now a reference to a function (with returnObj passed as first argument), not an executable string (not eval anymore!).
  • Renamed returnObj.boolean → returnObj.action (same behavior).
  • Title and content can't contain HTML anymore. However LF characters and whitespaces are preserved.
  • Adding to the DOM only the visible elements (removed display: none hack).
  • Fixed a bug with the keyup event listener.

NB: These changes break compatibility with v1.x. Please read the new documentation for further details.

v1.1

14 Jul 18:06
Compare
Choose a tag to compare
  • Fixed a problem with the XHTML syntax. Now the function works good both in HTML and XHTML, automatically.