Skip to content

Releases: dealfonso/power-buttons

2.1.1

01 Jul 10:07
9267c42
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.1.0...2.1.1

2.1.0

05 Dec 11:46
99c747f
Compare
Choose a tag to compare

Add the discover method, the function overload for powerButtons to enable powerButtons(pluginName, el, options) and powerButtons(el, options) and remove the dependency from the window to follow the workflow from jsweblibrary

What's Changed

  • remove dependency from window by @dealfonso in #10
  • add the discover method and enhance the default function by @dealfonso

Full Changelog: 2.0.1...2.1.0

2.0.1

16 Oct 10:21
adedbc7
Compare
Choose a tag to compare

What's Changed

  • correct bug in devel and add the plugin list by @dealfonso in #5
  • add support for using the form in which the button is, and inputs wit… by @dealfonso in #6
  • remove messages in console by @dealfonso in #7
  • add the docs for readthedocs by @dealfonso in #8

Full Changelog: 2.0.0...2.0.1

2.0.0

25 Sep 12:18
390a2d3
Compare
Choose a tag to compare

The new version of the library has been entirely rewritten (almost from scratch), allowing the creation of plugins.

Now, the library not only enables to confirm click actions in the DOM before executing them (i.e. confirm pressing a button or confirm clicking a link). It also enables to verify javascript code, showing a message and others.

This version contains the following plugins:

  1. verify button that verifies that one condition is valid before executing the function that it should execute. If the condition is not met, show a modal dialog to inform the user and interrupt its action. It is useful for (e.g.) FORM verification.
  2. confirm button that makes a button show a confirmation modal dialog before executing the function that it should execute. It is useful for (e.g.) confirming the action of submitting a form or deleting entries in a database.
  3. asynctask button that executes an asynchronous task before executing its real action and will show a modal dialog while it is being executed. It is useful for (e.g.) executing a long task before submitting a form.
  4. showmessage button that shows a modal dialog with a message before executing its real action. It is useful for (e.g.) showing the user a message when submitting a form.
  5. formset button, which sets the values of a set of form fields before executing its real action. It is useful for (e.g.) setting a hidden field in a form before submitting it or pre-filling a FORM.
  6. formbutton button that substitutes the button with a form that will contain the button. It can also add hidden fields to the form to be submitted along with the button. It is useful to avoid creating unnecessary forms in the HTML code.

What's Changed

New Contributors

Full Changelog: 1.2.0...2.0.0

1.2.0

02 Dec 11:28
Compare
Choose a tag to compare

This version adds verification buttons that enable executing one piece of arbitrary code before executing the default action for the button. The action will only be executed in case that the code is verified to true

jsconfirm-buttons

18 Nov 09:19
Compare
Choose a tag to compare

This version does not need jQuery nor Bootstrap.

  • in the case of jQuery: jsconfirm-buttons does not need jQuery at all, but provides $(...).confirmButton if jQuery is detected.
  • in the case of Bootstrap: jsconfirm-buttons makes use of bootstrap, but if it is not detected, there is a fallback to the window.confirm function.

Other features

  • global configuration for the library (e.g. setting texts, default functions, etc.)
  • easing internationalization
  • bug correction

jsconfirm-buttons

11 Nov 15:43
Compare
Choose a tag to compare

This is a plugin for jQuery that depends on Bootstrap. The plugin does not need any specific version of each of them.

The plugin makes that any button show a confirmation modal dialog prior to executing the function that it should execute. It is useful for (e.g.) confirm submitting a dialog or deleting entries in a database.

The basic syntax to use this plugin is to include a tag such as the next one:

<button confirm="Are you sure?">clickme</button>

Please see the README.md for more information.