Skip to content

Releases: keejelo/EasyDialogBox

EasyDialogBox 1.735.12

20 Mar 13:35
45fd2b7
Compare
Choose a tag to compare

Minor update:
Improved errorchecking

EasyDialogBox 1.735.9

20 Mar 10:58
7c91224
Compare
Choose a tag to compare

Minor update:
Added more errorchecking when using function that gets elements:
myObj.$(...);

EasyDialogBox 1.735.4

20 Mar 09:36
6080a37
Compare
Choose a tag to compare

Version 1.735.4, minor update:

Updated the "myObj.$()" function.
Even better element selection, in addition to the already existing ways, you can now do:
"myBox.$('#myDlgBox p input.myFormData')[0];"
mix it more up if you wanted to.

EasyDialogBox 1.735

19 Mar 17:26
9c1f289
Compare
Choose a tag to compare

New in version: 1.735

-> Dialogboxes are now created in DOM and memory at once with the "EasyDialogBox.create()" function.
( Before dialogbox was only created in memory, and the DOM element was created with "obj.show()" )


-> Added a "hide" function that hides the dialogbox when doing: myObj.hide();
It will still exist in DOM, but hidden with css.
This function also fires: myObj.onHide();


-> Dialogboxes now hides in DOM when closing the box by clicking "Close", "X", pressing "ESC" key,
they are NOT destroyed from DOM and memory like the previous versions was.

All dialogboxs will be kept alive by default, they are only destroyed when the user executes the
"destroy" function: myObj.destroy();
The user is now responsible for deleting/destroying the dialogbox objects to prevent DOM-fill and memory leaks.

Tip: By specifying an ID when creating a box, the existing box are reused when hiding and showing, instead of
a new box being created each time the box is hidden and shown, filling up the DOM and leak memory
if not destroyed.

(The variable "bKeepAlive" might be obsolete, and maybe removed in future versions)


-> Added ways to get the dialogbox element itself and the elements inside, using these shorthand methods:

myObj.el; // returns the dialogbox HTML element itself

myObj.$(); // using () blank, returns the dialogbox HTML element itself

myObj.$('#someID'); // using # (hash), returns the HTML element containing the specified ID

myObj.$('.someClass'); // using . (dot), returns an indexed HTMLCollection ([i] as normal)

myObj.$('someElement'); // returns an indexed HTMLCollection ([i] as normal)

..similar to .getElementById() and .querySelectorAll()

EasyDialogBox 1.732b

10 Sep 05:52
d7cfb0b
Compare
Choose a tag to compare
  • Minor browser-compatibility fixes.

EasyDialogBox 1.732

05 Sep 15:32
9095234
Compare
Choose a tag to compare
  • Added optional round corners and shadow for dialogbox.
  • Improved compatibilty (css) for legacy browsers.

EasyDialogBox 1.727

31 Aug 17:41
e632b33
Compare
Choose a tag to compare
  • Minor bugfix, class was not detected correctly.

  • Contains all updates from previous release version 1.723

EasyDialogBox 1.723

30 Aug 16:23
11dcb36
Compare
Choose a tag to compare
  • Added code to clean up className string to avoid error when creating objects, just in case ("easydlg.js", starting at line: 1220)
    Resolves issue if className string contains double whitespaces or more, and removes trailing and leading whitespace, should there be any.

Contains the same changes as version 1.722:

Major overhaul

  • Added "onCreate" , "onShow" and "onClose" event functions.
  • Added dialogbox close when ESC key is pressed (keyup event).
  • Added better support for Bootstrap 4. (Issue reported about: Display problem with header and footer = should now be fixed)
  • Added better Javascript-support for legacy browsers / crossbrowser, better backwards compatibility.
  • Bugfix: Custom position did not work when dragging was disabled, should work now (btw. read below).

Important flagname changes

The "classflags" below has had their names changed due to naming ambiguity causing bugs:

"dlg-no-drag" is now called "dlg-disable-drag"

"dlg-no-btns" is now called "dlg-disable-btns"

"dlg-no-overlay" is now called "dlg-disable-overlay"

"dlg-no-footer" is now called "dlg-disable-footer"

I'm deeply sorry for the problems that this may cause / have caused!
(But it should not be worse than changing the names in your code)

Hopefully it will all work now!
:)

EasyDialogBox 1.722

30 Aug 12:34
20fcd82
Compare
Choose a tag to compare

Major overhaul

  • Added "onCreate" , "onShow" and "onClose" event functions.
  • Added dialogbox close when ESC key is pressed (keyup event).
  • Added better support for Bootstrap 4. (Issue reported about: Display problem with header and footer = should now be fixed)
  • Added better Javascript-support for legacy browsers / crossbrowser, better backwards compatibility.
  • Bugfix: Custom position did not work when dragging was disabled, should work now (btw. read below).

Important flagname changes

The "classflags" below has had their names changed due to naming ambiguity causing bugs:

"dlg-no-drag" is now called "dlg-disable-drag"

"dlg-no-btns" is now called "dlg-disable-btns"

"dlg-no-overlay" is now called "dlg-disable-overlay"

"dlg-no-footer" is now called "dlg-disable-footer"

I'm deeply sorry for the problems that this may cause / have caused!
(But it should not be worse than changing the names in your code)

Hopefully it will all work now!
:)